Here you can find the source of randomFloat(a,b)
Math.randomFloat = function(a,b){ // random number in [a,b) var min = Math.min(a,b); var max = Math.max(a,b); var delta = max-min; /* ww w. j av a 2s . co m*/ return min + (Math.random()*delta); }
function getRandomFloat (min, max) { return Math.random() * (max - min) + min;
var getRandomFloat = function(min, max){ var returnObject = { decimal: Math.random() * max + min, binario: "0000"} return returnObject;
var getRandomFloat2 = function(min, max){ return Math.random() * max + min;
Math.randomFloat = function(min, max){ var seed = Math.random(); return (seed * (max - min)) + min; };