# Learning about Histograms

Playing around with d3 v4 Histograms

## Concepts

### Histograms

`TBA`

### Generating Data

#### Understanding Randomness

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.

#### d3.randomBates()

Generating randomness

Documentation

Returns a function for generating random numbers with a Bates distribution with *n* independent variables.

Wolfram Alpha

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);
```