rSign

open fun rSign(pSuccess: Double = 0.5): Double

Returns a randomly generated sign -1 or +1

Parameters

pSuccess

the probability of getting + 1. The default is 0.5.