Jump to content

Decimals with rand();


SieRobin

Recommended Posts

Ok, so I'm trying to figure this out.. everytime you use rand for a random number, it'll never output a decimal number if the parameters contain say..

[code]rand(1.6, 10.2);[/code]

It'll never output a decimal, I'd just like to know if there's a way to output random numbers with decimals.
Link to comment
https://forums.phpfreaks.com/topic/26466-decimals-with-rand/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.