petsc-3.7.1 2016-05-15
Report Typos and Errors

PetscRandomGetInterval

Gets the interval over which the random numbers will be randomly distributed. By default, this interval is [0,1).

Synopsis

#include "petscsys.h" 
PetscErrorCode  PetscRandomGetInterval(PetscRandom r,PetscScalar *low,PetscScalar *high)
Not collective Many br

Input Parameters

r -the random number generator context Many br

Output Parameters

low - The lower bound of the interval Many br
high - The upper bound of the interval Many br

Many br

See Also

PetscRandomCreate(), PetscRandomSetInterval()

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