PetscRandomSetType#
Builds a context for generating a particular type of random numbers.
Synopsis#
#include "petscsys.h"
PetscErrorCode PetscRandomSetType(PetscRandom rnd, PetscRandomType type)
Collective
Input Parameters#
rnd - The random number generator context
type - The name of the random type
Options Database Key#
-random_type (rander48|rand|rand48|sprng|random123|curand) - set the random number generator from the options database, see
PetscRandomType.
Note#
See PetscRandomType for available random types (for instance, PETSCRAND48, PETSCRAND).
See Also#
PetscRandom, PetscRandomType, PetscRandomGetType(), PetscRandomCreate()
Level#
intermediate
Location#
Examples#
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages