MCPcopy Create free account
hub / github.com/Kitware/VTK / Random

Method Random

Common/Core/vtkMath.cxx:94–98  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Generate pseudo-random numbers distributed according to the uniform distribution between 0.0 and 1.0. This is used to provide portability across different systems.

Source from the content-addressed store, hash-verified

92// distribution between 0.0 and 1.0.
93// This is used to provide portability across different systems.
94double vtkMath::Random()
95{
96 vtkMath::Internal->Uniform->Next();
97 return vtkMath::Internal->Uniform->GetValue();
98}
99
100//------------------------------------------------------------------------------
101// Initialize seed value. NOTE: Random() has the bad property that

Callers 13

Plot3DScalars.pyFile · 0.45
KSpline.pyFile · 0.45
CSpline.pyFile · 0.45
randintMethod · 0.45
colorCellsFunction · 0.45
colorCellsFunction · 0.45
shepards.pyFile · 0.45

Calls 3

GetRangeValueMethod · 0.80
NextMethod · 0.45
GetValueMethod · 0.45

Tested by 2

randintMethod · 0.36
colorCellsFunction · 0.36