Skip to content

Instantly share code, notes, and snippets.

@jsnape
Created July 20, 2014 10:32
Show Gist options
  • Save jsnape/3577915ba97f6ff8f0f2 to your computer and use it in GitHub Desktop.
Save jsnape/3577915ba97f6ff8f0f2 to your computer and use it in GitHub Desktop.
Harriet Emulator
using System;
using System.Threading;
namespace ConsoleApplication2
{
class Program
{
// Harriet emulator...
static void Main(string[] args)
{
var random = new Random();
while (true)
{
var phrase =
random.NextDouble() > 0.5 ? "What doin?" : "What dat?";
Console.WriteLine(phrase);
Thread.Sleep(random.Next(5000));
if (random.NextDouble () > 0.75)
{
Console.WriteLine("Dadddddyyyyyyy!!!");
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment