Playing around with d3 v4 Histograms
TBA
d3 offers different ways on generating randomness.
Using a uniform random number generator distributes a range of numbers evenly. Math.random() also uses the same distribution.
Looking at the first chart, we can see how flat the graph looks.
Generating randomness
Returns a function for generating random numbers with a Bates distribution with n independent variables.
Bates Distribution represents the distribution of a mean of n random variables uniformly distributed from 0 to 1.
d3.randomBates(1);
d3.randomBates(10);
d3.randomBates(100);