Random generator library

What is it ?

This is a live demo from this library.

Unlike Math.random, this library allows user to choose himself a seed (both number and hashed strings), in addition to proposing differents probability distributions (you may check Documentation to get a complete list of availables distributions).

Generating a large number at once may slow down the page.

See it on GitHub for more informations.

It seems you're running this file from a local file system.
Cross origin requests may be supported only for protocol schemes on some browsers.

Seed
Number of draws
Distribution law
                
        //Initialization
            let Distribution = Lowlight.Random.Distribution
            let generator = new Distribution.Normal().seed(0)

        //Configuration
            generator.alpha(0).beta(0).mean(0).deviation(0).min(0).max(0).mode(null).concentration(0).scale(0).shape(0).rate(0)

        //Generation
        //Could display random number
            setInterval(function () { console.log(generator.next()) }, 500)