Get your own customer support community
 

Generating random numbers?

What's the best way to generate random (or even pseudo-random) numbers? I notice that the CryptoUtil library can generate various random things (strings, longs, doubles, etc.) but oddly, there is no function to generate random integers. Should I be creating a random long and then convert it back to an integer? I would have expected there to be an easier way. Am I missing something obvious?
 
silly I’m feeling pretty random.
Inappropriate?
1 person has this question

User_default_medium