import tensorflow as tf

    # This creates a cycle of length 136.
    return tf.mod((num * 13), 137)

  num = tf.reshape(tf.mod(seed, 136) + 1, (1,))
  result = num
  for _ in range(num_elements - 1):
