RandomSign extension

on

Methods

sign() int
Randomly generates a bool value and returns it as a 1 or -1.