private void btnLanzar_Click(object sender, EventArgs e) { int[] cara = new int [6]; for (int i = 0; i < 100; i++) { int d = dado.Lanzar(); //txtDados.Text += d + Environment.NewLine; cara[d - 1]++; } for (int i = 0; i < 6; i++) { txtDados.Text += "[" + (i + 1) + "]:" + cara[i] + Environment.NewLine; } }
private void button1_Click(object sender, EventArgs e) { textBox1.Text += Convert.ToString(d.Lanzar()) + "\r\n"; }