/// <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;
        }
예제 #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);
        }