uniform_dist function

Create a Uniform distribution object for energy testing