jeudi 14 juillet 2016

Arc4Random in Swift?


I am looking to use the arc4random function in swift code, what would be the equivalent to this line of Objective-C code?

if (arc4random() % 2 == 0) {

// Swing 1

    }else{

// Swing 2

}

Aucun commentaire:

Enregistrer un commentaire