Skip to content

Pattern: PWhite

White noise between min and max.

If values are given as floats, output values are also floats < max. If values are ints, output values are ints <= max (as random.randint)

Example output

>>> PWhite(0, 10).nextn(16)
[8, 10, 8, 1, 7, 3, 1, 9, 9, 3, 2, 10, 7, 5, 10, 4]
>>> PWhite(0.0, 10.0).nextn(16)
[3.6747936220022082, 0.61313530428271923, 9.1515368696591555, ... 6.2963694390145974 ]