Esempio n. 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;
     }
 }
Esempio n. 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;
            }
        }
Esempio n. 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);
            }
        }
Esempio n. 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);
     }
 }