0
Is it possible to do a srand and then put a rand inside of it? Like this? srand (rand() ); ?
2 Respostas
+ 2
Try it and see. But the problem is that we are trying to produce random numbers which we get from time which is continuously changing. That means we need to seed the rand() function that we put into srand() too to get random numbers. Otherwise you will get the same numbers.
+ 1
ok... thanks!