Samples from a uniform distribution in the open interval (min, max).
See also
Other rng:
nv_normal,
nv_rbinom(),
nv_rng_state(),
nv_sample(),
nv_sample_int()
Examples
state <- nv_rng_state(42L)
result <- nv_runif(c(2, 3), state)
result[[2]]
#> AnvlArray
#> 0.8690 0.1506 0.5203
#> 0.3103 0.9928 0.1065
#> [ CPUf32{2,3} ]