Пример #1
0
 public aGaussian(int s)
     : base(1, 7, s)
 {
     aDie dice = new aDie(s);
     die = dice;
     rngResult = new int[37];
     High = 37;
     Low = 5;
     for (int i = 0; i < 37; i++)
     {
         rngResult[i] = 0;
     }
 }
Пример #2
0
        public aGaussian(int s)
            : base(1, 7, s)
        {
            aDie dice = new aDie(s);

            die       = dice;
            rngResult = new int[37];
            High      = 37;
            Low       = 5;
            for (int i = 0; i < 37; i++)
            {
                rngResult[i] = 0;
            }
        }
Пример #3
0
        private void button_Die_Click(object sender, EventArgs e)
        {
            int hold = seedCheck();

            if (hold != 0)
            {
                if (hold == -1)
                {
                    theSeed = DateTime.Now.Ticks.GetHashCode();
                }
                else if (hold == 1)
                {
                    theSeed = Int32.Parse(textBox_seed.Text);
                }
                aDie tmp = new aDie(theSeed);
                listBox_random.Items.Add("Die");
                storageList.Add(tmp);
            }
        }
Пример #4
0
 private void button_Die_Click(object sender, EventArgs e)
 {
     int hold = seedCheck();
     if (hold != 0)
     {
         if (hold == -1)
         {
             theSeed = DateTime.Now.Ticks.GetHashCode();
         }
         else if (hold == 1)
         {
             theSeed = Int32.Parse(textBox_seed.Text);
         }
         aDie tmp = new aDie(theSeed);
         listBox_random.Items.Add("Die");
         storageList.Add(tmp);
     }
 }