Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace Laboration_1_U12
- {
- public partial class Form1 : Form
- {
- int ett, kryss, två = 0;
- Random rand;
- int tips = 0;
- public Form1()
- {
- InitializeComponent();
- }
- //public class Tipsen
- //{
- //}
- private void Form1_Load(object sender, EventArgs e)
- {
- Random randomTips = new Random();
- tips = randomTips.Next();
- }
- private void KnappGenerera_Click(object sender, EventArgs e)
- {
- ett = int.Parse(txtRutaHemmaseger.Text);
- kryss = int.Parse(txtRutaOavgjort.Text);
- två = int.Parse(txtRutaBortaSeger.Text);
- for (int i = 1; i < 14; i++)
- {
- rand = new Random();
- {
- listBox1.Items.Add(i + ":\t" + tips);
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement