Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Random random = new Random();
- int num_throws = int.Parse(Console.ReadLine());
- string[] possible_outcomes = new string[2] { "Krona", "Klave" };
- string[] results = new string[num_throws];
- for (int i = 0; i < num_throws; ++i)
- {
- results[i] = possible_outcomes[random.Next(0, 2)];
- }
- for (int i = 0; i < num_throws; ++i)
- {
- Console.WriteLine(results[i]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement