Method: baseAndVarianceValue

Takes a base value and a variance range and returns a random value between the range, added to the base.
baseAndVarianceValue (Number base, Array variance, Boolean floorIt)
  • Numberbase The base value.
  • Arrayvariance An array containing the two values of the variance range.
  • BooleanfloorIt If set to true, will cause the returned value to be passed through Math.floor().
Returns Number Returns the final value based upon the base value and variance range.
© Copyright 2013 Irrelon Software Limited. All Rights Reserved. UK Registered Company Number: 07522767
Isogenic (ī´sōjen´ik): Adj originating from a common source; possessing the same genetic composition.
Strange Things Happen at the One Two Point