# PetscRandomView
Views a random number generator object. 
## Synopsis
```
#include "petscsys.h" 
PetscErrorCode PetscRandomView(PetscRandom rnd, PetscViewer viewer)
```
Collective


## Input Parameters

- ***rnd -*** The random number generator context
- ***viewer -*** an optional visualization context



## Note
The available visualization contexts include

- ***`PETSC_VIEWER_STDOUT_SELF` -*** standard output (default)
- ***`PETSC_VIEWER_STDOUT_WORLD` -*** synchronized standard
output where only the first processor opens
the file.  All other processors send their
data to the first processor to print.





## See Also
 `PetscRandom`, `PetscRealView()`, `PetscScalarView()`, `PetscIntView()`

## Level
beginner

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


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