Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function collectRandom(%rounds)
- {
- $Random::numRounds = %rounds;
- $Random::Iters = 100;
- $Random::randomString = "";
- doRound();
- }
- function doRound()
- {
- if($Random::numRounds <= 0)
- {
- printRandom();
- return;
- }
- %x = "";
- %t = getRealTime();
- for(%a = 0; %a < $Random::Iters; %a++)
- %x = %x @ "x";
- %t=getRealTime()-%t;
- $Random::randomString = $Random::randomString @ %t;
- $Random::numRounds--;
- schedule(16, 0, doRound);
- }
- function printRandom()
- {
- echo($Random::randomString);
- }
Advertisement
Add Comment
Please, Sign In to add comment