#include "petscsys.h" PetscErrorCode PetscRandomSetInterval(PetscRandom r,PetscScalar low,PetscScalar high)Not collective Many br
r | - the random number generator context Many br | |
low | - The lower bound of the interval Many br | |
high | - The upper bound of the interval Many br |
Many br
Notes: for complex numbers either the real part or the imaginary part of high must be greater than its low part; or both of them can be greater. Many brIf the real or imaginary part of low and high are the same then that value is always returned in the real or imaginary part. Many br
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