public static float getRandomFloat(float min, float max) {

    return (random.nextFloat() * (max - min) + min);
  }
get random float between min and max.
iotdb-core/datanode/src/test/java/org/apache/iotdb/db/utils/RandomNum.java