@@ -0,0 +1,182 @@
+from __future__ import print_function, division%0Aimport numpy as np%0A%0A%0Adef randbool(n, rng=None):%0A    if rng is None:%0A        rng = np.random%0A    return rng.randint(2, size=n) * 2 - 1%0A

Add random number generation utility module.