Created
July 20, 2014 10:32
-
-
Save jsnape/3577915ba97f6ff8f0f2 to your computer and use it in GitHub Desktop.
Harriet Emulator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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