#include "petscsys.h" int PetscRandomGetValue(PetscRandom r,PetscScalar *val)Not Collective
PetscRandomCreate(PETSC_COMM_WORLD,RANDOM_DEFAULT,&r); PetscRandomGetValue(r,&value1); PetscRandomGetValue(r,&value2); PetscRandomGetValue(r,&value3); PetscRandomDestroy(r);
Level:intermediate
Location:src/sys/src/utils/random.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages