akmalsiddique wrote:Rnd(9) generate 0.8475843,0.34673.0.437574.......
just like this how i can generate dacimal randum number of 9.
What do you mean by "decimal random number of 9"?
akmalsiddique wrote:rand() function in php can not help me in this cas.
It probably can, especially when used in conjunction with getrandmax(). For example:
echo rand() / (getrandmax() + 1); // print pseudorandom number in the range [0.0, 1.0)
Alternatively, use [man]mt_rand()[/man]:
echo mt_rand() / (mt_getrandmax() + 1); // print pseudorandom number in the range [0.0, 1.0)