Happy Birthday - programmer style.

Adam K Dean - Mar 13 '13 - - Dev Community

Today I decided to wish my good friend @Farkie happy birthday: programmer style.

Here's to you, ol' bean.

using System;
using System.Text;

public class HappyBirthday
{
    public static void Main(string[] args)
    {
        Console.WriteLine("{0} {1}{2} {3}",
            GetRandomString(-1045111850),
            GetRandomString(554696058),
            GetRandomString(99640),
            GetRandomString(-2146856402));

        Console.ReadKey();
    }

    public static string GetRandomString(int seed)
    {
        var rnd = new Random(seed);
        var sb = new StringBuilder();
        for (; ; )
        {
            int c = rnd.Next(0, 27);
            if (c == 0) break;
            sb.Append((char)(96 + c));
        }
        return sb.ToString();
    }
}
Enter fullscreen mode Exit fullscreen mode

And, because you probably won't be bothered to compile it, I've done that for you too.

Happy Birthday Alan

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player