#!/bin/bash
#
# /usr/bin/X11/xtoys -- puts a random cuddly toy onto desktop
#
# Thanks to Andrew Stribblehill <a.d.stribblehill@dur.ac.uk>
# who supported this script
#

images=(`ls /usr/share/xteddy` `ls /usr/local/share/xteddy 2> /dev/null`)

num=${#images[*]}
choice=`expr $RANDOM % $num`

/usr/bin/X11/xteddy -F${images[choice]} $*

