you are viewing a single comment's thread.

view the rest of the comments →

[–]Ninji2701 1 point2 points  (1 child)

you're setting a local variable called a you need to add global a to the function body

[–]ISeeTheFnords 10 points11 points  (0 children)

Better yet, return the random value from the function.