Hocam Ben Söyle Birşey Yaptım Bi Form1 içine Buton Yerleştirdim O butona tıklandığından 1 ile 100 arasında rast gele sayı üretiyor olmuş mu??namespace WindowsFormsApplication1{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button2_Click(object sender, EventArgs e) { Random r = new Random(); int sayi = r.Next(1, 100); MessageBox.Show("Üretilen Sayi =" + sayi); MessageBox.Show("Tercihiniz Icin Tesekkürler,Kaan Uygun"); }
Hocam Ben Söyle Birşey Yaptım Bi Form1 içine Buton Yerleştirdim O butona tıklandığından 1 ile 100 arasında rast gele sayı üretiyor olmuş mu??
YanıtlaSilnamespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button2_Click(object sender, EventArgs e)
{
Random r = new Random();
int sayi = r.Next(1, 100);
MessageBox.Show("Üretilen Sayi =" + sayi);
MessageBox.Show("Tercihiniz Icin Tesekkürler,Kaan Uygun");
}