Tone.CtrlRandom

↳ EXTENDS Tone

Choose a random value.

CONSTRUCTOR

new Tone.CtrlRandom (
min
,
max
)
min

The minimum return value.

type: Number or Time
max

The maximum return value.

DEFAULTS

{
min : 0 ,
max : 1 ,
integer : false
}

EXAMPLE

var randomWalk = new Tone.CtrlRandom({
	"min" : 0,
	"max" : 10,
	"integer" : true
});
randomWalk.eval();

 

Members

.integer

Boolean #

If the return value should be an integer

</>

.max

Number or Time #

The maximum return value

</>

.min

Number or Time #

The minimum return value

</>

.value

* READONLY #

Return a random value between min and max.

</>
docs generated Sep 15 2019