Re: [Tutor] 6 random numbers

2011-10-17 Thread Robert Sjoblom
>     print random.randrange(1,42) > If you want to collect the intermediate results, either store them in a > list: > > results = [] > for i in range(6): >     results.append(random.randrange(1,42)) Gmail has removed the "Reply All" function for some ABSOLUTELY RIDICULOUS REASON, so I think peopl

Re: [Tutor] 6 random numbers

2011-10-16 Thread Stefan Behnel
ADRIAN KELLY, 16.10.2011 21:43: anyone know how i would go about printing 6 random numbers print(75, 45, 6, 35, 36472, 632) Numbers were generated by typing randomly on my keyboard. Sorry-for-taking-it-all-too-literally-ly, Stefan ___ Tutor ma

Re: [Tutor] 6 random numbers

2011-10-16 Thread Steven D'Aprano
ADRIAN KELLY wrote: hello all, 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. Is it possible to code this? is it possible to count random variables?

Re: [Tutor] 6 random numbers

2011-10-16 Thread Robert Sjoblom
>> hello all, >> 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. >> Is it possible to code this? is it possible to count random variables? i am

Re: [Tutor] 6 random numbers

2011-10-16 Thread शंतनू
On 17-Oct-2011, at 1:13 AM, ADRIAN KELLY wrote: > hello all, > 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. > Is it possible to code this? is