How do I make my program choose a number/variable randomly?
rand from what I know generates a random number.
I wanted to upgrade my console app so:
if the "pick-number-randomly" function thingy picks 1, the hero will be granted 5% damage bonus, and if it's 2, the monster is granted 5% damage bonus.
I remember it from Lua it was like that:
math.random(1, 0)
if math.random=1 then