Getting Started with Time2Code on Dodona

Sign in to test your solution.
using System; class Submission { static Random rng = new Random(); public static string FlipCoin() { // Generate outcome of flipping an unbiased coin return rng.Next(2) == 0 ? "heads" : "tails"; } public static void Main(string[] args) { Console.WriteLine(FlipCoin()); } }
You can submit as many times as you like. Only your latest submission will be taken into account.
Sign in to test your solution.