#include "petscsys.h" PetscErrorCode PetscRandomSetSeed(PetscRandom r,unsigned long seed)Not collective
r | - The random number generator context | |
seed | - The random seed |
PetscRandomSeed(r) without a call to PetscRandomSetSeed() re-initializes the seed. The random numbers generated will be the same as before.
Level:intermediate
Location:src/sys/random/interface/randomc.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages