#!/bin/bash
if [ "$1" == "" ]; then
	echo "Syntax error."
	exit 1
fi
if echo $USER | grep sys; then
	echo "Citizen: you have committed an error! Please report for termination."
	exit 2
fi
if echo $USER | grep apl; then
	RANGE=2
else
	RANGE=10
fi
case `echo "$RANDOM % $RANGE" | bc` in
#	0) echo "Computer says yes.";;
#	1) echo "Computer says maybe.";;
	9) echo "Computer demands pie.";;
	*) echo "Computer says no.";;
esac
exit 0
