If Statement with GetRandomInt()

Hey there!
I’m trying to get an if statement working with var DiscSpawning : int = GetRandomInt(MinDisc, MaxDisc)
For example if the random int is = 1 it should print (“1”)

Greetings!

Here are two answers (from memory, hope I don’t get it wrong) :wink:

if (DiscSpawning = 1):
    print("1")

# OR...
if (DiscSpawning = 1):
    print("{DiscSpawning}")
1 Like