I realize the Swift book provided an implementation of a random number generator. Is the best practice to copy and paste this implementation in one\'s own program? Or is t
I've been able to just use rand() to get a random CInt. You can make it an Int by using something like this:
rand()
let myVar: Int = Int(rand())
You can use your favourite C random function, and just convert to value to Int if needed.