Bitcoin Forum

Other => Off-topic => Topic started by: reipay on March 24, 2013, 11:06:53 AM



Title: randomly open random threads
Post by: reipay on March 24, 2013, 11:06:53 AM
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.