Random number generator 0-100

Hello Forum! I am having an issue in my game. I want to create a random number generator, and if the number is below 50 there is an alternate ending. How would I do this? Thanks!

Hi @Andrew_Bilyeu,

There is a “random integer” CoBlock you can find under the “Operators” category in the CoBlocks toolbox. If you need to do some action depending on random number, you can compare the result as in the following picture:
rng

Hope that helps!

Thank you so much! It works, and I will make sure to help my friends, who are having a similar problem, with it!