search

goog.testing.MockRandom

Provided By
Extends
All Implemented Interfaces

Class for unit testing code that uses Math.random.

new MockRandom( sequence, opt_install )

Parameters
sequence(Array<number>|null)

The sequence of numbers to return. This object will modify this array.

opt_installboolean=

Whether to install the MockRandom at construction time.

Instance Methods

Instance Properties