so it is the same uniform distribution and what is the diff if i write so:
x = rand()%4+1;
and
x = (rand()%4+1)/RAND_MAX;
but for program with RAND_MAX, i oways get the value of 0, is...
Type: Posts; User: juyew
so it is the same uniform distribution and what is the diff if i write so:
x = rand()%4+1;
and
x = (rand()%4+1)/RAND_MAX;
but for program with RAND_MAX, i oways get the value of 0, is...
tq...it work so far....
but if i want the number range from 3 to 200, how to do?
bcz now i using lognorm(31.1, 0.48), but it result to me is too huge,
tq
hey, now i using the Visual Studio 2010 C++
i would like to random generate a number from log normal distribution, but so far i only know to random generate a number from normal distribution by:
...