Hi, I've been looking for a while for things that would give me random numbers under a value that I can specify (for me it's 5).
I've seen rand();
and srand();
. I also know that srand()
is the seed and rand()
is the random number itself.
Even the example programs don't work as expected (they don't return different numbers on each execution, I need it to return different numbers each time)
Thanks,
JT