randomizer
What is the function in C/C++ to generate a random number ??? Or should I make a randomizer myself ??
Thanks !
rand() There''s also a few discussions going on right now about how to get good distrobutions of random numbers. I''m too lazy to find them all (I think there''s 2 or 3) but here''s just one that contains a good example of using rand(). ''Generating a range of random integers''
Cheers!
-pirate_dau
Cheers!
-pirate_dau
this should be something you solved with pencil in paper but...
r = rand()%( upper + 1 - lower ) +lower;
r = rand()%( upper + 1 - lower ) +lower;
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement