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()); } }