PetscRandomSetType#

Builds a context for generating a particular type of random numbers.

Synopsis#

Collective

Input Parameters#

  • rnd - The random number generator context

  • type - The name of the random type

Options Database Key#

  • -random_type - Sets the random type; use -help for a list of available types

Note#

See “petsc/include/petscsys.h” for available random types (for instance, PETSCRAND48, PETSCRAND).

See Also#

PetscRandom, PetscRandomGetType(), PetscRandomCreate()

Level#

intermediate

Location#

src/sys/classes/random/interface/randreg.c


Edit on GitLab

Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages