Search Results

Showing results 1 to 1 of 1
Search took 0.01 seconds.
Search: Posts Made By: RobertBruce
Forum: C++ Apr 1st, 2008
Replies: 15
Views: 6,446
Posted By RobertBruce
The function rand() produced integers between 0 and a large (system-dependent) integer called RAND_MAX. To get integers between 0 and 50, write:


cout << 50*rand()/RAND_MAX << endl;
Showing results 1 to 1 of 1

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC