# PetscRandomInitializePackage
This function initializes everything in the `PetscRandom` package. It is called from PetscDLLibraryRegister_petsc() when using dynamic libraries, and on the first call to `PetscRandomCreate()` when using shared or static libraries. 
## Synopsis
```
PetscErrorCode PetscRandomInitializePackage(void)
```



## See Also
 `PetscInitialize()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/random/interface/dlregisrand.c.html#PetscRandomInitializePackage">src/sys/classes/random/interface/dlregisrand.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/random/interface/dlregisrand.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)  
