Returns a random sign, either 1 or -1.
the random generator to use
the probability of returning 1, in the range [0, 1]. Defaults to 0.5.
Returns a random sign, either 1 or -1.