How can I get a random number form range in C++

Hello.
I’m trying to make a weapon spawn, that spawns random weapons every minute, so I need a random number to be generated once the cooldown ends. This number has to be bigger than 0, and bigger than X (0

2 Likes

FMath::RandRange(int32 min, int32 max)

9 Likes

Thank you for your quick response, it really helped me :slight_smile:

Awesome! Would you be kind enough to accept the answer?

Oh sure, totally forgot about that.