def METHOD_NAME(seed):
    """
    BOUT++ psuedo random number generator
    This PRNG has no memory, i.e. you need to call it with a different
    seed each time
    """
    # Make sure seed is
    if seed < 0.0:
        seed *= -1
    # Round the seed to get the number of iterations
    niter = int(11 + (23 + bout_round(seed)) % 79)
    # Start x between 0 and 1
    A = 0.01
    B = 1.23456789
    x = (A + np.mod(seed, B)) / (B + 2.0 * A)
    # Iterate logistic map
    for i in range(niter):
        x = 3.99 * x * (1.0 - x)
    return x