Random number generation on 4bytes
-
hello, I just want to know how to generate a random number on 4 bytes, I saw that rand returns an int but it's too short for my purposal, any suggestion? In my project I DON'T use MFC, I searched on codeproject but all I found was MFC sample, thanks Paolo
-
hello, I just want to know how to generate a random number on 4 bytes, I saw that rand returns an int but it's too short for my purposal, any suggestion? In my project I DON'T use MFC, I searched on codeproject but all I found was MFC sample, thanks Paolo
Paolo Ponzano wrote: generate a random number on 4 bytes Do you mean that the range of random random numbers should span values that fit in 4 bytes? If so, you could just use
rand()
after seeding it with a random (or as random as you can get)int
. /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com