Can anyone help me modify the code so the ball starts in random directions

Erik python at lucidity.plus.com
Fri Dec 11 20:05:25 EST 2015


Hi,

On 11/12/15 23:19, phamtony33 at gmail.com wrote:
> Can anyone direct me in the direction where to start the code for the randomized of the  ball  to start.

Your questions over the last week or so appear to be homework 
assignments. However, I'll give you a hint: in the interactive 
interpreter shell, try:

 >>> import random
 >>> help(random)

Read that and try to work out how you might apply one of the functions 
to your problem.

E.



More information about the Python-list mailing list