Skip to content

Instantly share code, notes, and snippets.

@andylshort
Created October 29, 2018 16:44
Show Gist options
  • Save andylshort/9e54fc4a55d1ca43281c90fd4ee00f26 to your computer and use it in GitHub Desktop.
Save andylshort/9e54fc4a55d1ca43281c90fd4ee00f26 to your computer and use it in GitHub Desktop.
Coin flipper
using System;
namespace Coin
{
class Program
{
static void Main(string[] args) => Console.WriteLine(new Random().Next(0, 1000) % 2 == 0 ? "Heads" : "Tails");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment