#!/bin/sh
#
# /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
#
i=0
for img in `ls /usr/local/share/xteddy`; do
	images[$i]=$img
	i=`expr $i + 1`
done

choice=`expr $RANDOM % $i`

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