summaryrefslogtreecommitdiff
path: root/Tools/schnitt/unsort
blob: 83adfb6c6b7c15ccc1d6668713ff3c86e20db962 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/perl

while (<>)
{
  $h{$_}=1;
}

foreach $key (sort shuffle keys %h)
{
  print $key;
}

sub shuffle {
  $ran = rand(1);

  if ($ran > 0.5)
  {
    return -1;
  }
  else
  {
    return 1;
  }
}