Simple JS Random function takes two argument first is minimal random number second is maximum random number (originally designed for integers).
We could also add default numbers.
function rndmm(minnum,maxnum){
var rndmath = Math.floor(Math.random()*(maxnum+1-minnum))+minnum;
return rndmath;
}
That's it for today, I guess.
Nothing special.
I guess I'll add translated function for Py(2|3).x later.
No comments:
Post a Comment