Skip to content

Instantly share code, notes, and snippets.

@bobend
Created November 27, 2012 14:44
Show Gist options
  • Save bobend/4154584 to your computer and use it in GitHub Desktop.
Save bobend/4154584 to your computer and use it in GitHub Desktop.
"10 PRINT CHR$(205.5+RND(1)); : GOTO 10" C# version
private readonly string[] _boxes = { "╱", "╲" };
private string getBoxes(int max=10000)
{
var random = new Random();
var sb = new StringBuilder();
for (var x = 0; x < max; x++)
{
sb.Append(_boxes[random.Next(_boxes.Length)]);
}
return sb.ToString();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment