# PETSCCURAND
access to the CUDA random number generator from a `PetscRandom` object PETSc must be ./configure with the option --with-cuda to use this random number generator.




## See Also
 `PetscRandomCreate()`, `PetscRandomSetType()`, `PetscRandomType`

## Level
beginner

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


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