vendredi 20 janvier 2017

RemObjects Silver: Doesn't recognize arc4random_uniform

So I just started using RemObject's Swift compiler, Silver, but it doesn't seem to recognize the function arc4random_uniform(). I have tried researching this problem but could not fin an answer. Here is my code:

let randomNumber: UInt32 = arc4random_uniform(100)
println(randomNumber)

The console gives me this error message:

(E46) Unknown identifier "arc4random_uniform"

Is there something wrong with my code, or do I have to import or configure something?




Aucun commentaire:

Enregistrer un commentaire