39,000 results
Open links in new tab
  1. Generating Random Numbers in Java - GeeksforGeeks

    May 12, 2026 · Random numbers are widely used in Java applications such as games, simulations, OTP generation, and testing. …Read more

  2. Java How To Generate Random Numbers - W3Schools

    Generate a random number in Java with the Math.random() method.

  3. Generating Random Numbers in Java - Baeldung

    Jan 8, 2024 · Learn different ways of generating random numbers in Java.

  4. Random (Java Platform SE 8 ) - Oracle

    Creates a new random number generator using a single long seed. The seed is the initial value of the internal state of the …Read more

  5. Getting random numbers in Java - Stack Overflow

    May 5, 2011 · I would like to get a random value between 1 to 50 in Java. How may I do that with the help of Math.random();? How …Read more

  6. Random Number Generators in Java - Baeldung

    Jan 8, 2024 · Java 17 provides a large number of improvements to the generation of random numbers. We explore the new API and …Read more

  7. Random Number Generator in Java (Math.random, Random, …

    Apr 21, 2026 · Generate random numbers in Java: Math.random (), Random, ThreadLocalRandom and SecureRandom. Ranges, …Read more

  8. Random (Java SE 21 & JDK 21) - Oracle

    Creates a new random number generator using a single long seed. The seed is the initial value of the internal state of the …Read more

  9. Java.util.Random class in Java - GeeksforGeeks

    Jul 23, 2025 · Random class is used to generate pseudo-random numbers in java. An instance of this class is thread-safe. The …Read more

  10. Generate Random Numbers in Java With Random and …

    Oct 10, 2026 · To generate random numbers in Java, we call a method such as nextInt (), nextDouble () or nextBoolean () on a …Read more