1 // Written by Kevin Bealer <kevinbealer@gmail.com>
2 // Found at http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.announce&article_id=6978
3 // Sightly modified by Leandro Lucarella <llucax@gmail.com>
4 // (changed not to print anything and lower the total iterations; ported to
7 import tango.math.random.Random;
11 const I = 50; // original: 200
13 int main(char[][] args)
19 auto rand = new Random();
21 for(int i = 0; i < I; i++) {
22 int[] arr = new int[N];
24 for(int j = 0; j < arr.length; j++) {
29 if (zig > stuff.length)
30 zig = rand.uniform!(int) % stuff.length;