using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace 随机抽人
{
public partial class Form1 : Form
{
string[] student = new string[46]
//在下面一行代码大括号内输入名字
{ };
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
this.label1.Text = "";
Random s = new Random();
int ss = s.Next(46);
this.textBox1.Text = student[ss];
}
}
}
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace 随机抽人
{
public partial class Form1 : Form
{
string[] student = new string[46]
//在下面一行代码大括号内输入名字
{ };
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
this.label1.Text = "";
Random s = new Random();
int ss = s.Next(46);
this.textBox1.Text = student[ss];
}
}
}