All Downloads are FREE. Search and download functionalities are using the official Maven repository.

utils.MathUtils Maven / Gradle / Ivy

package utils;

import java.util.Random;

public class MathUtils {

    /**
     * Generate a random number between 10.000 and 100.000
     *
     * @return int
     */
    public static int generateRandomNumber() {
        final Random rand = new Random();
        final int min = 10000;
        final int max = 99999;
        return rand.nextInt((max - min) + 1) + min;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy