Search Results

Showing results 1 to 1 of 1
Search took 0.01 seconds.
Search: Posts Made By: winkland
Forum: C++ Mar 29th, 2005
Replies: 30
Views: 904,007
Posted By winkland
This may not be better, but it is shorter

for (int a=1; a<4; a++){
for(int b=1; b<4; b++){
slots[a][b] = rand()%9; OR slots[a][b]=( rand() *10 ) +1; //this assumes you wanted 1-10
...
Showing results 1 to 1 of 1

 


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

©2003 - 2009 DaniWeb® LLC