1 Aralık 2013 Pazar

C# da Rastgele Sayı Atama

c#
c#

        private void button1_Click(object sender, EventArgs e)
        {
            Random r;
            r = new Random();
            int a,b;
          
            for (int i = 1  ; i < 10; i++)
            {
                listBox1.Items.Add( a = r.Next(10, 50));

            }

        }

0 yorum :

Yorum Gönder