sample

open override fun sample(random: Random): Double(source)

Draws a single random value from this normal distribution using the Box-Muller transform.

The Box-Muller transform converts two independent uniform random numbers into a pair of independent standard normal random values. One of those values is then scaled by sigma and shifted by mu.

Return

a random value drawn from this distribution.

Parameters

random

the source of randomness.