Edit in JSFiddle

// Additional options for _.random [Lodash]

_.random(0, 10); // Return integer from 0 to 10

_.random(10); // Return integer from 0 to 10

_.random(10, true); // Return floating point from 0 to 10

_.random(1.1, 9.9); // Return floating point from 1.1 to 9.9