/// <summary>
        /// Get the DefaultRandomGenerator instance using Lazy initialization
        /// </summary>
        /// <returns>
        /// The instance
        /// </returns>
        public static DefaultRandomGenerator Instance()
        {
            if (instance == null)
            {
                instance = new DefaultRandomGenerator();
            }

            return instance;
        }
Exemple #2
0
        /// <summary>
        /// Get the DefaultRandomGenerator instance using Lazy initialization
        /// </summary>
        /// <returns>
        /// The instance
        /// </returns>
        public static DefaultRandomGenerator Instance()
        {
            if (instance == null)
            {
                instance = new DefaultRandomGenerator();
            }

            return(instance);
        }