How do i make a RNG chance system?

How do i make a RNG chance system?

I would like to make it so that when a certain event is triggered it would choose a number, for like a Sols RNG type of game or to choose an enemy to spawn. I know there’s RandomInRange(#,#) but its only an equal chance, and doing alot of [If # = #] is quite boring and complicated.

Thank you in advance!

Are you not liking the equal chance because you want common, uncommon, and rare spawns?

You can do RandomInRange to change the number in a variable, then check to see what number that variable is.
So >Random 1-100
If Variable is less than 70 do X
If Variable is greater or equal to70, and less than 90 do Y
If Variable is greater or equal to 90 do Z

Oh yeah! I didn’t think of that, thanks! And yes, i do want common uncommon and rare spawns and stuff so yeah. Thank you again!