blob: 97e932fd5e08d8e7f2230aca1311a3a003ef75dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/usr/bin/env ruby
load "superlatives"
load "nouns"
load "adjectives"
def flip(bias = 0.5)
return rand < bias
end
adjectives = [
flip(0.25) ? " #{$adjectives.sample}" : "",
flip(0.75) ? " #{$adjectives.sample}" : ""
]
puts "The #{$superlatives.sample}#{adjectives[0]} thing since#{adjectives[1]} #{$nouns.sample}."
|