示例#1
0
文件: Alea.cs 项目: GRoca1/Procedural
        public static Alea GetInstance()

        {
            if (MonAlea == null)
            {
                MonAlea = new Alea();
            }
            return(MonAlea);
        }
示例#2
0
文件: Alea.cs 项目: GRoca1/Procedural
        //

        public void jeter()
        {
            //Alea
            hasard      = Alea.GetInstance();
            this.valeur = hasard.Next(1, 6);
        }