(state)
return state[0] ^ state[1] ^ state[2]
A fast (pseudo)-random number generator.

    Parameters
    ----------
    state: array of int64, shape (3,)
        The internal state of the rng

    Returns
    -------
    A (pseudo)-random int32 value
A fast (pseudo)-random number generator.
A fast ( pseudo ) - random number generator .
def tau_rand_int(state):
    """A fast (pseudo)-random number generator.

    Parameters
    ----------
    state: array of int64, shape (3,)
        The internal state of the rng

    Returns
    -------
    A (pseudo)-random int32 value
    """
    state[0] = (((state[0] & 4294967294) << 12) & 0xFFFFFFFF) ^ (
        (((state[0] << 13) & 0xFFFFFFFF) ^ state[0]) >> 19
    )
    state[1] = (((state[1] & 4294967288) << 4) & 0xFFFFFFFF) ^ (
        (((state[1] << 2) & 0xFFFFFFFF) ^ state[1]) >> 25
    )
    state[2] = (((state[2] & 4294967280) << 17) & 0xFFFFFFFF) ^ (
        (((state[2] << 3) & 0xFFFFFFFF) ^ state[2]) >> 11
    )

    return state[0] ^ state[1] ^ state[2]
def tau_rand_int ( state ) : state [ 0 ] = ( ( ( state [ 0 ] & 4294967294 ) << 12 ) & 0xFFFFFFFF ) ^ ( ( ( ( state [ 0 ] << 13 ) & 0xFFFFFFFF ) ^ state [ 0 ] ) >> 19 ) state [ 1 ] = ( ( ( state [ 1 ] & 4294967288 ) << 4 ) & 0xFFFFFFFF ) ^ ( ( ( ( state [ 1 ] << 2 ) & 0xFFFFFFFF ) ^ state [ 1 ] ) >> 25 ) state [ 2 ] = ( ( ( state [ 2 ] & 4294967280 ) << 17 ) & 0xFFFFFFFF ) ^ ( ( ( ( state [ 2 ] << 3 ) & 0xFFFFFFFF ) ^ state [ 2 ] ) >> 11 ) return state [ 0 ] ^ state [ 1 ] ^ state [ 2 ]