Author

Topic: randomly open random threads (Read 423 times)

newbie
Activity: 15
Merit: 0
March 24, 2013, 07:06:53 AM
#1
Just for fun, a bash script that randomly opens your browser with a random thread of this forum at a random time:
Code:
#!/bin/bash
#Edit this for setting the correct browser:
browser=chromium-browser
while sleep $(($RANDOM/100))
do $browser https://bitcointalk.org/index.php?topic=$RANDOM
done
This should work nicely at any environment where $RANDOM returns a random number with a length from three to five. So I think it should work at any POSIX-compliant system if it has bash installed.
Jump to: