Skip to content

Instantly share code, notes, and snippets.

@adrian-afl
Created January 15, 2015 13:32
Show Gist options
  • Save adrian-afl/8694fe91e3493b5dd01f to your computer and use it in GitHub Desktop.
Save adrian-afl/8694fe91e3493b5dd01f to your computer and use it in GitHub Desktop.
using System;
namespace ConsoleApplication4
{
internal class Program
{
private static void Main(string[] args)
{
float test = 666.6666666f;
DateTime now = DateTime.Now;
Random rand = new Random();
while (true)
{
float i = (float)rand.NextDouble();
test = (test / i) * i;
if ((DateTime.Now - now).TotalSeconds > 4) break;
}
Console.Write(test);
Console.Read();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment