PetscRandomSetSeed

Sets the random seed.

Synopsis

#include "petscsys.h" 
PetscErrorCode PETSC_DLLEXPORT PetscRandomSetSeed(PetscRandom r,unsigned long seed)
Not collective

Input Parameters

r - The random number generator context
seed - The random seed

See Also

PetscRandomCreate(), PetscRandomGetSeed(), PetscRandomSeed()

Level:intermediate
Location:
src/sys/utils/random.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages