code: public static double uniform(Random rng, double min, double max) {
          return rng.nextDouble() * (max - min) + min;
      }
docs: Generate a uniform random number from the given rng
  @param rng the rng to use
  @param min the min num
  @param max the max num
  @return a number uniformly distributed between min and max