setRandomSeed function

void setRandomSeed(
  1. int seed
)

This global function allows you to enforce repeatable random results within this library. You should set this seed only once and before first the 'random' method call.

Implementation

void setRandomSeed(int seed) {
  _r = Random(seed);
}