diff options
Diffstat (limited to 'random_stack.rb')
| -rwxr-xr-x | random_stack.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/random_stack.rb b/random_stack.rb new file mode 100755 index 0000000..ab6ad35 --- /dev/null +++ b/random_stack.rb @@ -0,0 +1,8 @@ +#!/usr/bin/ruby + +if ARGV.length != 2 + puts "Usage: #{$PROGRAM_NAME} start end" + exit +end + +puts (ARGV[0]..ARGV[1]).to_a.shuffle.join(" ") |
