#include "petscsys.h" int PetscRandomSetInterval(PetscRandom r,PetscScalar low,PetscScalar high)Collective on PetscRandom
PetscRandomCreate(PETSC_COMM_WORLD,RANDOM_DEFAULT,&r); PetscRandomSetInterval(RANDOM_DEFAULT,&r); PetscRandomGetValue(r,&value1); PetscRandomGetValue(r,&value2); 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