build/modelscript.umd.js
function(len) {
                    if(len === undefined) len=16;

                    var entropy = fs.randomBytes(len);
                    var result = 0;

                    for(var i=0; i<len; i++) {
                        result = result + Number(entropy[i])/Math.pow(256,(i+1));
                    }
                    return result
                }
function(len) {
                    if(len === undefined) len=16;

                    var entropy = fs.randomBytes(len);
                    var result = 0;

                    for(var i=0; i<len; i++) {
                        result = result + Number(entropy[i])/Math.pow(256,(i+1));
                    }
                    return result
                }
function ( len ) { if ( len === undefined ) len = 16 ; var entropy = fs . randomBytes ( len ) ; var result = 0 ; for ( var i = 0 ; i < len ; i ++ ) { result = result + Number ( entropy [ i ] ) / Math . pow ( 256 , ( i + 1 ) ) ; } return result }
This is the core function for generating entropy

@param len number of bytes of entropy to create
@returns {number} A pseduo random number between 0 and 1
This is the core function for generating entropy