I am trying to generate random numbers from 0.1 - 0.7.
My current code is close to what I need, but is giving me numbers lower than 0.1:
frameDur1 = roundn((((7)*rand(1))/10), -2);
If you have suggestions on another/easier function I could use, that would be appreciated as well.
Thanks in advance!
Aucun commentaire:
Enregistrer un commentaire