[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
urgent problem
i know this is not quite the place to ask for this .... but
i have (in c++) a function that uses rand() (to print a matriza) i have to
give the user the option to print it as many times as he likes but
everytime the function is calles rand() comes up with different numbers
what can i do to keep the same numbers coming up?
i am using solaris/SunOs on sparc/hds/pc and using the function:
rand() % 100
p.s: it is really urgent
thanx
- - - - - - - -
Chaim Zucker.
zuckerc@macs.biu.ac.il
"I want to break free"