Getting Started with Time2Code on Dodona
Log in om je oplossingen te testen.
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());
}
}
Je kunt zo vaak indienen als je wenst. Er wordt enkel rekening gehouden met je laatst ingediende oplossing.
Log in om je oplossingen te testen.