seany123 Posted March 9, 2009 Share Posted March 9, 2009 okay what I want to do is essentially get a random number between 0.025 and 0.035. the reason im wanting this is because im going to be using the number to * against a value to take the percentage awake... can anybody help me here? Link to comment https://forums.phpfreaks.com/topic/148686-solved-getting-random-decimal-numbers/ Share on other sites More sharing options...
seany123 Posted March 9, 2009 Author Share Posted March 9, 2009 oh i have come up with this... $random1 = rand(25,35); $random2 = ($random1 * 0.01); Link to comment https://forums.phpfreaks.com/topic/148686-solved-getting-random-decimal-numbers/#findComment-780758 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.