|
|
|
|
|
Discussion Response Post to:
C++
|
| Author |
Message |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 23 Apr 2008 22:21:22 IST
|
|
|
int x = rand(n);
the above function generates a random number from 0 to (n-1)
The function is defined under "stdlib.h"
|
|
this reply: 0 points
(with 0 
in 0 votes ) [?]
|
|
You have to be logged on to rate
|
|
|
|
|
|
|
|
|
|