<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Thank you.<br><br><hr id="stopSpelling">Subject: Re: [Haskell-beginners] Randomly selecting a data constructor<br>From: tom.davie@gmail.com<br>Date: Sun, 14 Mar 2010 11:08:59 +0000<br>CC: beginners@haskell.org<br>To: evgenij1@hotmail.com<br><br>

<base><div><br></div><div>data&nbsp;<span class="ecxApple-style-span" style="font-family: 'Courier New'; font-size: 13px;">FigType = TR1 | TR2 | TR3 | TR4 | SQ | L1 | L2 | Z1 | Z2 | Z3 | Z4 | NoFigure</span></div><div><font class="ecxApple-style-span" face="'Courier New'" size="3"><span class="ecxApple-style-span" style="font-size: 13px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; deriving (Enum)</span></font></div><div><font class="ecxApple-style-span" face="'Courier New'" size="3"><span class="ecxApple-style-span" style="font-size: 13px;"><br></span></font></div><div><font class="ecxApple-style-span" face="'Courier New'" size="3"><span class="ecxApple-style-span" style="font-size: 13px;">randomFigure :: IO FigType</span></font></div><div><font class="ecxApple-style-span" face="'Courier New'" size="3"><span class="ecxApple-style-span" style="font-size: 13px;">randomFigure = toEnum &lt;$&gt; randomRIO (1,11)</span></font></div><div><br></div><div>Bob</div>                                               <br /><hr />Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. <a href='https://signup.live.com/signup.aspx?id=60969' target='_new'>Sign up now.</a></body>
</html>