Creates an initial RNG state from a seed. This state is required by all random sampling functions and is updated after each call.
Value
nv_tensor of dtype ui64 and shape (2).
See also
Other rng:
nv_rbinom(),
nv_rdunif(),
nv_rnorm(),
nv_runif()
Examples
jit_eval({
state <- nv_rng_state(42L)
state
})
#> AnvilTensor
#> 42
#> 0
#> [ CPUui64{2} ]