# PETSCRAND48
access to the basic Unix drand48() random number generator 
## Options Database Keys

- ***-random_type <rand,rand48,sprng> -*** select the random number generator at runtime





## Note
Not recommended because it may produce different results on different systems.


## See Also
 `PetscRandomCreate()`, `PetscRandomSetType()`, `PETSCRAND`, `PETSCSPRNG`, `PetscRandomSetFromOptions()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/random/impls/rand48/rand48.c.html#PETSCRAND48">src/sys/classes/random/impls/rand48/rand48.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/random/impls/rand48/rand48.c)


[Index of all Sys routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
