Search:
Forum
Beginners
rand() and srand()
rand() and srand()
Mar 21, 2008 at 4:36pm UTC
guanamc
(3)
how can I get a number at random
from the following set of numbers
which are not consecutive .
2,4,6,8,10
Thanx
Mar 21, 2008 at 4:58pm UTC
ropez
(310)
(1+rand()%5) * 2;
Last edited on
Mar 21, 2008 at 4:58pm UTC
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs