如果瀏覽伊莉時速度太慢或無法連接,可以使用其他分流瀏覽伊莉,www01.eyny.com(02,03)。
產生6個10到35的亂數,你可以自行修改i<=6 ,這是亂數的數量。- 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 WindowsFormsApplication1
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void button1_Click(object sender, EventArgs e)
- {
- textBox1.Text = "";
- Random r = new Random();
- for (int i = 1; i <= 6; i++)
- {
- textBox1.Text += r.Next(10,36)+Environment.NewLine;
- }
- }
- }
- }
複製代碼 ... |