29.06.2018, 12:29
Hello, i'm working on a experience level with percent. And i need a float random function, like:
randomFloat(min,max);
to be something like (random((max) - (min)) + (min)) - this is only for integer but I want for float, I know that random is not for float, but you might now a function to get random float from min and max. ex: randomFloat(30.5, 60.10) to get a random float value from this two..
But I really don't know how to do that.
I've searched on forum, but i didn't find what i need..
randomFloat(min,max);
to be something like (random((max) - (min)) + (min)) - this is only for integer but I want for float, I know that random is not for float, but you might now a function to get random float from min and max. ex: randomFloat(30.5, 60.10) to get a random float value from this two..
But I really don't know how to do that.
I've searched on forum, but i didn't find what i need..