random property

Random? random

A central static Random object that should be used any time randomization is required in this test.

When the main Test starts, it will select a random seed which can be manually overriden. If all random behavior in the test derives from random object, then tests can be reproduced by setting the same seed again.

This is null if instance is null.

Implementation

static Random? get random => instance?._random;