## Question:

sorry for asking this question but I couldn’t understand itThank you a lot

## Answer:

`math.random(x)`

will randomly return an integer between 1 and x.So

`math.random(2)`

will randomly return 1 or 2.If it returns 1 (

`== 1`

), `ballDX`

will be set to 100.If it returns 2 (

`~= 1`

), `ballDX`

will be set to -100.A simple way to make a 50-50 chance.

If you have better answer, please add a comment about this, thank you!