# Random
{id: random}

## rand
{id: rand}
{i: rand}

* [Random](https://crystal-lang.org/api/Random.html)
* Pseudo Random floating point number between 0 and 1

![](examples/random/rand.cr)
![](examples/random/rand.out)

## Random in other parts of Crystal
{id: other-random}

* [shuffle array](arrays-shuffle)
* [sample array](arrays-sample)


## Random as a class
{id: random-class}
{i: next_float}
{i: next_int}
{i: next_bool}
{i: hex}
{i: base64}

![](examples/random/class.cr)
![](examples/random/class.out)

## Random - seed
{id: random-seed}
{i: seed}

* Fixed random-looking numbers.

![](examples/random/seed.cr)
![](examples/random/seed.out)

