<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
hello all,<BR>
anyone know how i would go about printing 6 random numbers, i know i could copy and paste 6 times (which would work) but i was thinking about a while loop, ie. while lottery_numbers.count is <7. <BR>
Is it possible to code this? is it possible to count random variables? i am trying to keep the program as simple as possible, cheers<BR><BR>
any help would be welcome, <BR>
<BR>import random<BR>
lottery_numbers=random.randrange(1,42)<BR>
print lottery_numbers<BR><FONT size=3><FONT color=#000000><FONT face="Times New Roman"> </FONT></FONT></FONT><FONT size=3><FONT color=#000000><FONT face="Times New Roman"> </FONT></FONT></FONT><BR><BR>                                            </div></body>
</html>