Initializes a Gaussian random distribution with the specified mean and deviation, using the specified source randomizer.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
The mean value of the distribution (also called the expected value or median).
The standard deviation of the distribution (also called sigma).
A new random distribution.
Using this initializer creates a Gaussian distribution whose range is determined by the specified
deviation values. The
lowest property of the newly created distribution is set to three deviations below the mean (
lowest = mean - 3 * deviation) and the
highest property is set to three deviations above the mean (
highest = mean + 3 * deviation).
A random distribution works by mapping the values produced by the
source randomizer to the range and characteristics specified by the distribution. Multiple distributions can share the same source, with the side effect that retrieving a random value through one distribution affects the sequence of random numbers produced by the source.