is it possible to randomize hex numbers, much the same way rand()/srand() randomize decimal? I assume if its possible, you would use rand()/srand(), but not sure. Thanks in advance.
Printable View
is it possible to randomize hex numbers, much the same way rand()/srand() randomize decimal? I assume if its possible, you would use rand()/srand(), but not sure. Thanks in advance.
Just don't forget to put
Again, don't worry about seed base.Code:unsigned seed=time(NULL);
srand(seed);
The base of a number is merely for viewing purposes, it is all 0's and 1's underneath it all.
Why don't you randomize an integer, then convert to decimal.
Or I didn't understand the question.