Returns a function that generates a gaussian-distributed random number *
import * as Random from 'https://unpkg.com/ixfx/dist/random.js';// Create functionconst r = Random.gaussianFn();// Generate random valuer(); Copy
import * as Random from 'https://unpkg.com/ixfx/dist/random.js';// Create functionconst r = Random.gaussianFn();// Generate random valuer();
import * as Random from 'https://unpkg.com/ixfx/dist/random.js';import Arrays from 'https://unpkg.com/ixfx/dist/data.js';const r = Random.gaussianFn(10);// Randomise array with gaussian distributionArrays.shuffle(r); Copy
import * as Random from 'https://unpkg.com/ixfx/dist/random.js';import Arrays from 'https://unpkg.com/ixfx/dist/data.js';const r = Random.gaussianFn(10);// Randomise array with gaussian distributionArrays.shuffle(r);
Returns a function that generates a gaussian-distributed random number *
Example: Random number between 0..1 with gaussian distribution
Example: Pass the random number generator elsewhere