playMaker

Author Topic: Random in-inclusive max  (Read 1500 times)

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
Random in-inclusive max
« on: December 12, 2014, 10:07:13 PM »
The 'random int' has a 'inclusive max'.  the following page does not go over what it does.
https://hutonggames.fogbugz.com/default.asp?W87

So if I say,
min=1 and max=3,
then not checked is 1 or 2?
and checked is 1, 2 or 3?


mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: Random in-inclusive max
« Reply #1 on: December 12, 2014, 10:10:23 PM »
I believe that it just uses the "max" number- so if the min is 1 and the max is 3- by checking inclusive max it will generate a 1, 2 or 3- if its unchecked it will only generate a 1 or 2
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!