------------------------------------------------------------------------------ Initialize seed value. NOTE: Random() has the bad property that the first random number returned after RandomSeed() is called is proportional to the seed value! To help solve this, call RandomSeed() a few times inside seed. This doesn't ruin the repeatability of Random().
| 104 | // RandomSeed() a few times inside seed. This doesn't ruin the |
| 105 | // repeatability of Random(). |
| 106 | void vtkMath::RandomSeed(int s) |
| 107 | { |
| 108 | vtkMath::Internal->Uniform->SetSeed(s); |
| 109 | } |
| 110 | |
| 111 | //------------------------------------------------------------------------------ |
| 112 | // Description: |