The Random class creates random integer values. Although the range of an int (32 bit) is: [-2,147,483,647 : 2,147,483,647], Random.nextInt() generates values from 0 to 32,767, which is an unsigned 16-bit integer. Let’s run the Random class to validate the randomness.
The results of generating 1,048,574 random numbers represented as a histogram:
The RandomGenerate class enables you to…
Continue Reading Dag Calafell, III’s Article on their blog
Generating Random Numbers and Dates (AX 2012)
Blog Syndicated with Dag Calafell, III’s Permission