yesthattom: (Default)
[personal profile] yesthattom
I think I bought a lottery ticket a zillion years ago. Today I'm buying 3 just to be crazy.

The program "scramble" is something we use internally. It takes a file and reorders the lines randomly. We used to call it "unsort" but changed the name to be more accurate.

> awk -v TOP=50 'BEGIN { for ( i = 1 ; i <= TOP ; i++ ) { print i } }'|scramble |head -5|sort -n
7
31
36
44
49
> awk -v TOP=50 'BEGIN { for ( i = 1 ; i <= TOP ; i++ ) { print i } }'|scramble |head -5|sort -n
10
12
16
35
42
> awk -v TOP=50 'BEGIN { for ( i = 1 ; i <= TOP ; i++ ) { print i } }'|scramble |head -5|sort -n
5
6
20
28
30

And now the 'big money ball' numbers that I'm picking:

> awk -v TOP=36 'BEGIN { for ( i = 1 ; i <= TOP ; i++ ) { print i } }'|scramble |head -3|sort -n
8
9
24
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

December 2015

S M T W T F S
  12345
6789 101112
13141516171819
202122 23242526
2728293031  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 3rd, 2026 03:34 am
Powered by Dreamwidth Studios