Hello all,
i want to use the rand() to produce a float between 0.00000 and 1.00000.
i already have an srand() for a seed.
thanks in advance...
--Goo$ematt
Hello all,
i want to use the rand() to produce a float between 0.00000 and 1.00000.
i already have an srand() for a seed.
thanks in advance...
--Goo$ematt
Code:r = (double)rand() / RAND_MAX;
My best code is written with the delete key.