Monday 26 August 2013

Random Number with a predefined width in F#

Random Number with a predefined width in F#

How can I defined the width of a random number?
let randomNumber = System.Random()
let randomBarcodePart2 = randomNumber.Next(**000000, 999999**)
I have this now, but is it possible to generate a random number, where we
only defined the width.
Like this:
let randomBarcodePart2 = randomNumber.Next(6)

No comments:

Post a Comment