[Tutor] how to print random number multiply
Steven D'Aprano
steve at pearwood.info
Sat Jan 15 01:58:52 CET 2011
walter weston wrote:
> I have mostly studied python and now I'm ready to start writing code. I want to print random numbers a certain ammount of times I am using the code
>
> import random
> print (random.random())
>
> I tried bind the print statement to a variable and when I call x for example I want it to print new numbers when I store the print statement in a variable x everytime I call x it's the same number and does change I wanted it to change when I call it could someone show me the code to do that thanks!
I'm sorry, I don't understand this. Can you try explaining more clearly
what you want to do?
--
Steven
More information about the Tutor
mailing list