...

/

Pseudo-Random Number Generation

Pseudo-Random Number Generation

This lesson will introduce pseudo-random number generation in JAX and discuss how it offers an edge over other PRNGs.

Random variable

Consider a function:

f(x)=x2+5f(x) = x^2 +5

No matter how many times we call this function, it will always give the same output for a given input.

On the other hand, consider some random/stochastic function; the seventh roll of the dice, the temperature at 3 PM, or the quantum state of a particle. All of them are never guaranteed to give the same output every time.

The outcome of this random function is known as a random variable. It’s hard to think of a field that doesn’t rely in some way on random variables. It’s no wonder that they play a central role in modeling almost any real-world system.

PRNG

One of the advantages computers ...