+ 2
Usage of random,srand ,rand,randomise
Can anyone please give examples to make me understand how to use random,rand,srand,randomise
2 Respostas
+ 2
Thank you
0
srand = only once per program : initialize
Ex : srand(time(0));
Rand = return random number
Ex : rand()%10; //random numbers between 0 and 9