Sha256: 1dce0029a4d7aeb7f895a486e3d63ac9d62db9d27771ca613ef36178dc4a9a5d

Contents?: true

Size: 374 Bytes

Versions: 69

Compression:

Stored size: 374 Bytes

Contents

var random = require('./random');
var MIN_INT = require('../number/MIN_INT');
var MAX_INT = require('../number/MAX_INT');

    /**
     * Returns random number inside range
     */
    function rand(min, max){
        min = min == null? MIN_INT : min;
        max = max == null? MAX_INT : max;
        return min + (max - min) * random();
    }

    module.exports = rand;

Version data entries

69 entries across 69 versions & 2 rubygems

Version Path
trusty-festivity-extension-2.6.3 node_modules/bower/node_modules/mout/random/rand.js
trusty-festivity-extension-2.6.2 node_modules/bower/node_modules/mout/random/rand.js
trusty-festivity-extension-2.6.1 node_modules/bower/node_modules/mout/random/rand.js
trusty-festivity-extension-2.6 node_modules/bower/node_modules/mout/random/rand.js
trusty-festivity-extension-2.5.19 node_modules/bower/node_modules/mout/random/rand.js
trusty-festivity-extension-2.5.18 node_modules/bower/node_modules/mout/random/rand.js
trusty-festivity-extension-2.5.17 node_modules/bower/node_modules/mout/random/rand.js
trusty-festivity-extension-2.5.16 node_modules/bower/node_modules/mout/random/rand.js
trusty-festivity-extension-2.5.15 node_modules/bower/node_modules/mout/random/rand.js
trusty-festivity-extension-2.5.14 node_modules/bower/node_modules/mout/random/rand.js
trusty-festivity-extension-2.5.13 node_modules/bower/node_modules/mout/random/rand.js
trusty-festivity-extension-2.5.12 node_modules/bower/node_modules/mout/random/rand.js
trusty-festivity-extension-2.5.11 node_modules/bower/node_modules/mout/random/rand.js
trusty-festivity-extension-2.5.10 node_modules/bower/node_modules/mout/random/rand.js
trusty-festivity-extension-2.5.9 node_modules/bower/node_modules/mout/random/rand.js
trusty-festivity-extension-2.5.8 node_modules/bower/node_modules/mout/random/rand.js
trusty-festivity-extension-2.5.7 node_modules/bower/node_modules/mout/random/rand.js
trusty-festivity-extension-2.5.6 node_modules/bower/node_modules/mout/random/rand.js
trusty-festivity-extension-2.5.5 node_modules/bower/node_modules/mout/random/rand.js
trusty-festivity-extension-2.5.4 node_modules/bower/node_modules/mout/random/rand.js