> 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
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
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?
>> 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
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