<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1476" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Oops there was a typo in my suggested 
Set::AtRandom</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Here's the one I'm actually using:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>atRandom: aGenerator<BR>&nbsp;"Answer a random 
element of the receiver.&nbsp; Uses aGenerator which<BR>&nbsp;should be kept by 
the user in a variable and used every time. Use<BR>&nbsp;this instead of 
#atRandom for better uniformity of random numbers <BR>&nbsp;because only you use 
the generator.&nbsp; Causes an error if self has no 
<BR>&nbsp;elements."<BR>&nbsp;| ind entry |<BR>&nbsp;entry _ 
nil.<BR>&nbsp;[entry == nil] whileTrue: [<BR>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;self 
emptyCheck.<BR>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;ind _ aGenerator nextInt: array 
size.<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;entry _ array at: 
ind.<BR>&nbsp;].<BR>&nbsp;^entry.</FONT></DIV></BODY></HTML>