create_rng {pharmr} | R Documentation |
create_rng
Description
Create a new random number generator
Pharmpy functions that use random sampling take a random number generator or seed as input. This function can be used to create a default new random number generator.
Usage
create_rng(seed = NULL)
Arguments
seed |
(numeric (optional)) Seed for the random number generator or NULL (default) for a randomized seed. If seed is generator it will be passed through. |
Value
(Generator) Initialized numpy random number generator object
Examples
## Not run:
rng <- create_rng(23)
rng$standard_normal()
## End(Not run)
[Package pharmr version 1.0.1 Index]