/*
         * return a boolean indicating if the numbers of the probability has won or has lost.
         * @numMax indicate the maximum number about the amount of the probabilities.
         * @numProbability indicate the amount of the probabilities
         */

        public Boolean isProbabilityWon(int numMax, int numProbabiblity)
        {
            int     numRandom = SingletonUtilities.Instance().getNumberRandom(numMax);
            Boolean boolean   = false;

            if (numRandom < numProbabiblity)
            {
                boolean = true;
            }

            return(boolean);
        }
 public static SingletonUtilities Instance()
 {
     if (instance == null)
     {
         lock (typeof(SingletonUtilities))
         {
             if (instance == null)
             {
                 instance = new SingletonUtilities();
             }
         }
     }
     return(instance);
 }