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

Date: 2002-04-09 09:00 am (UTC)
mangosteen: (Default)
From: [personal profile] mangosteen
geek.

geek geek geek geek geek geek geek GEEK!

--another geek.

December 2015

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

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 2nd, 2026 08:01 am
Powered by Dreamwidth Studios