Require truthy random value for randomness

This commit is contained in:
samme 2019-06-11 11:38:29 -07:00
parent 77859b1cdf
commit df3953e604

View file

@ -275,7 +275,7 @@ var EmitterOp = new Class({
this.start = this.has(value, 'start') ? value.start : value.min;
this.end = this.has(value, 'end') ? value.end : value.max;
var isRandom = (this.hasBoth(value, 'min', 'max') || this.has(value, 'random'));
var isRandom = (this.hasBoth(value, 'min', 'max') || !!value.random);
// A random starting value (using 'min | max' instead of 'start | end' automatically implies a random value)