Random even number?
Hello!
I want to create a change attribute behavior: change game.XXX to random(200,300), but I want the attribute to always be an even number (so: 200, 202, 204 etc.). Is there any way to do it?
Thank you!
I want to create a change attribute behavior: change game.XXX to random(200,300), but I want the attribute to always be an even number (so: 200, 202, 204 etc.). Is there any way to do it?
Thank you!
Comments
(random(100,150))*2
[ if 123, then 123*2 is 246]
[ if 148, then 148*2 is 296]
[ if 119, then 119*2 is 238]
Hope this helps
(random(100,150))*2
beat me to it..