This is an easy (and useless) script to choose a random user for a channel (This script does not choose people who are voice/op)
you should also use:
on :TEXT:`o:#: { if ($nick isop $chan) || ($me isop $chan) { /mode $chan +o $2 } }