import math
import random


def UniformExpoInteger(low, high, base=2):
  """Returns base to a power uniformly distributed between low and high.

  This is useful for exploring large ranges of integers while ensuring that
  values of all different sizes are represented.
  """
  return int(math.floor(math.pow(base, random.uniform(low, high))))