Klasse CustomGenerators

java.lang.Object
ch.framedev.simplejavautils.CustomGenerators

public class CustomGenerators extends Object
A class that provides utility methods for generating random integers and doubles.
  • Konstruktordetails

    • CustomGenerators

      public CustomGenerators()
  • Methodendetails

    • randomInt

      public int randomInt(int min, int max)
      Generates a random integer within the specified range.
      Parameter:
      min - the minimum value inclusive
      max - the maximum value inclusive
      Gibt zurück:
      a random integer within the specified range
    • randomDouble

      public double randomDouble(double min, double max)
      Generates a random double within the specified range.
      Parameter:
      min - the minimum value inclusive
      max - the maximum value inclusive
      Gibt zurück:
      a random double within the specified range