- Mar 5, 2019
I need to generate two random integer, one with a range of 1 to 620 and another with a range of 1 to 420. I have no idea how I would go about doing this. Can someone give me a hand? Thanks.
cheers mate, I literally just wasn't sure of what the command was and how you could use it but you basically gave me everything i needed to know. you're a legend.Type in 'Rnd' then making sure the cursor is within the word press F1. You'll find:
Function Rnd : Float ( range:Float )
Function Rnd : Float ( low:Float, high:Float )
You then need to convert the result to an integer using Int(n)
You could use either of these functions (add 1 to the result of the first version)
Have a go yourself, it's literally one line of code and it's better than someone just giving you the answer straight off