Created
January 15, 2015 13:32
-
-
Save adrian-afl/8694fe91e3493b5dd01f to your computer and use it in GitHub Desktop.
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; | |
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