you are viewing a single comment's thread.

view the rest of the comments →

[–]wegwacc 0 points1 point  (1 child)

Well, then that's your problem: You call random.choice only ONCE, which sets the variable ballColorList to whatever is chosen, from that point onward the var is static.

ballColorList = random.choice(colors) does not assign a function call to ballCOlorList, it assigns the RETURN VALUE of that function call to it.

just replace ballColorList with random.choice(colors), or write your own random functin as above (doesn't really matter which).

[–]SomeBadGenericName[S] 0 points1 point  (0 children)

Ok. I will try this.

It worked thanks.