How to get a random long number ?

  • Thread starter Thread starter FX
  • Start date Start date
F

FX

Hi all,
How can I get a random long number ?

(nb: Random class allows me to generate only int number, I would like number
possibly greater than int.MaxValue)
 
Get 2 random Integers, shift the first left 32 bits, and OR them together.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but it takes a very long time,
and the bicycle has to *want* to change.
 
Back
Top