As for why it doesn't work, please see the conditions.
The condition is that the item is a lottery ticket = true, and A = random number 1- 100.
3. Please put this A = random number 1- 100 in the action and use the setting variable A = random number 1- 100.
4. Action, if
By the way, if A = 1, which action would you do?