dresscode-bricks
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -130,8 +130,8 @@ var Bricks = {}; | ||
Bricks.rand = function(start, end) { | ||
if (arguments.length == 1) { | ||
if (arguments.length === 1) { | ||
end = start; | ||
start = 0; | ||
} | ||
return Math.round(Math.random() * (end - start)) + start; | ||
return Math.floor(Math.random() * (end - start + 1)) + start; | ||
}; | ||
//#endlabel rand |
{ | ||
"name": "dresscode-bricks", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Kolyaj", |
130324