From 92c765952e2580aad5c0e4c6622d9be0f1a2c296 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 1 Aug 2017 00:34:11 -0700 Subject: [PATCH] Add random choice script --- dotfiles/lib/bin/random_choice.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 dotfiles/lib/bin/random_choice.py diff --git a/dotfiles/lib/bin/random_choice.py b/dotfiles/lib/bin/random_choice.py new file mode 100755 index 00000000..b6a10dc2 --- /dev/null +++ b/dotfiles/lib/bin/random_choice.py @@ -0,0 +1,6 @@ +#!/usr/bin/env python +import sys + +import random +print sys.argv[1:] +print random.choice(sys.argv[1:])