2019-01-05
private void button1_Click(object sender, EventArgs e) { Random r = new Random(); for (int i = 1; i <= 1000; i++) { string ip = Math.Truncate(r.NextDouble() * 256).ToString() + "." + Math.Truncate(r.NextDouble() * 256).ToString() + "." + Math.Truncate(r.NextDouble() * 256).ToString() + "." + Math.Truncate(r.NextDouble() * 256).ToString(); richTextBox1.AppendText(ip + "\r"); } } |
(完)
沒有留言:
張貼留言