pg.scalars.RandomScalar

Accessible via pg.scalars.RandomScalar.

class RandomScalar(seed=None)[source]

Bases: pg.scalars.Scalar

Base class for random operation for computing scheduled value.

Methods:

call(step)

Implementation.

next_value()

Return next value..

call(step)[source]

Implementation. Subclass should override this method.

abstract next_value()[source]

Return next value..

Return type:

Union[int, float]