Unable to use Foundation arc4random_uniform in Swift solution submitted to OJ

  • 1

    In my Swift solution, I import Foundation and try to use the arc4random_uniform function.
    But I get a compile error that says: use of unresolved identifier 'arc4random_uniform'.
    Is this expected behavior? Shouldn't I be able to use Foundation functions?

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.