Question 2. How can i make a random number like 0.003? the fact for this is i am making a gym for my game so i want a random number from 0.001 to 0.020. i tried this way but didn't work how i wanted it to.
<?PHP $rand_strength = rand(0,0) . rand(0,0) . rand(1,20); echo "You have gained $rand_strength strength"; $db->query("UPDATE users SET uStrength=uStrength+'$rand_strength' WHERE uID='" . $user['uID'] . "'"); ?>
This is the results i got "You have gained 0018 strength"
Thanks for your time