|
|
|
|
|
Discussion Response Post to:
C++
|
| Author |
Message |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 23 Apr 2008 17:45:41 IST
|
|
|
use rand function like
int a=rand()
to get numbers in a range say 0 to 9
int a=rand() % 10
you need cstdlib for this
|

|
this reply: 0 points
(with 0 
in 0 votes ) [?]
|
|
You have to be logged on to rate
|
|
|
|
|
|
|
|
|
|