#include "sys.h" int PetscRandomGetValue(PetscRandom r,Scalar *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
System Index
Table of Contents