Package api.basic

Class Util


  • public class Util
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Util()  
    • Method Summary

      Modifier and Type Method Description
      static int random​(int min, int max)
      Generate a pseudo-random int ranging from min to max (max excluded)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Util

        public Util()
    • Method Detail

      • random

        public static int random​(int min,
                                 int max)
        Generate a pseudo-random int ranging from min to max (max excluded)
        Parameters:
        min - The minimum value of the generated integer
        max - The maximum value of the generated integer (not included)
        Returns:
        The pseudo-random integer generated by this method