Generating Random Numbers and Dates (AX 2012)

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

0 Votes: 0 Upvotes, 0 Downvotes (0 Points)

Leave a reply

Follow
Search
Loading

Signing-in 3 seconds...

Signing-up 3 seconds...