Thread: random numbers
View Single Post
 
Reply
Posted 2002-11-11, 11:30 AM in reply to LordZpider's post "random numbers"
that says nothing, the command is telling C++ to generate a random number, but not actually calculating one.

let's say,

printf ("A number between 0 and 99: %d\n", rand()%100);

and the ouput is 46

where did that 46 come from? no one seems to understand my question. But i think i should have just left it alone after the small clock theory, cuz that's probably as accurate as it will get
C. M. Ngan
Aerospace Engineering
University of Illinois at Urbana Champaign
Old
Profile PM WWW Search
LordZpider is neither ape nor machine; has so far settled for the in-betweenLordZpider is neither ape nor machine; has so far settled for the in-between
 
 
LordZpider