ilovegold69
Guru
- Joined
- Aug 28, 2011
- Sythe Gold
- 77
- Messages
- 1,195
Basically i'm just startin 2 learn c++ and I'm screwin around but i cant seem to figure out how to say... make int value=(integer between 0 and 100) i googled it but all i figured out was something like this
Value=(rand()%100)+1;
I mean it spits out a number but its like 42 every time so how do i get a completely random integer between 0 and 100 every time?
Copy and paste the code here and i'll figure it out... or u can explain whatever
Thanx
Value=(rand()%100)+1;
I mean it spits out a number but its like 42 every time so how do i get a completely random integer between 0 and 100 every time?
Copy and paste the code here and i'll figure it out... or u can explain whatever
Thanx





