warp.randn#
- warp.randn(state: uint32) float#
Kernel
Python
Sample the standard normal (Gaussian) distribution with mean 0 and variance 1.
Uses the Box-Muller transform, consuming two uniform draws. In a kernel, this advances
statein place; called from the Python scope, it does not modifystate, so repeated calls with the samestatereturn the same value (seerand_init()). For a general normal, scale and shift the result:mean + stddev * wp.randn(state).