What is the syntax of
Generating a integer
For example
RAM(5) give a. # 1,2,3,4,5 (one of)
let myRandomNumber = Int.random(in: 1…<6)
Should do it.
Blessings,
—Mark
1 Like
Thanks Mark
Thanks
God bless
How is this different from arc4random_uniform ? Which one is better for which type of situation?
After 4.2 the language changed to what I describe above.
arc4random_uniform was supposed to avoid “modulo bias” which avoided the tendency of arc4Random to produce certain number more than others,
Blessings,
—Mark
1 Like