My Tech Tip
Thursday, January 17, 2008
Randomization
srand
(
time(0)
); // for seed based on current time
int
k
= 1 +
rand()
%
80
; // for random number 1 to 80
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment