:orphan: # PETSCSPRNG access to the publicly available random number generator sprng ## Options Database Keys - ***-random_type -*** select the random number generator at runtime ## Note PETSc must be ./configure with the option --download-sprng to use this random number generator. ## Developer Note This is NOT currently using a parallel random number generator. Sprng does have an MPI version we should investigate. ## See Also `RandomCreate()`, `RandomSetType()`, `PETSCRAND`, `PETSCRAND48`, `PetscRandomSetFromOptions()` ## Level beginner ## Location src/sys/classes/random/impls/sprng/sprng.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/random/impls/sprng/sprng.c) [Index of all Sys routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)