playMaker

Author Topic: [Solved]Bug Random Int ?  (Read 1367 times)

stigma

  • Full Member
  • ***
  • Posts: 218
[Solved]Bug Random Int ?
« on: October 06, 2023, 10:27:05 AM »
When I use the Random Int action from 1 to 3, the 3 never comes out. I have to do 1 to 4. Bug?
« Last Edit: October 07, 2023, 05:37:14 AM by stigma »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Bug Random Int ?
« Reply #1 on: October 06, 2023, 04:38:27 PM »
there should be a check box 'Inclusive Max'

By default C# Random.Range does not include Max value (probably as its more used together with array's)
« Last Edit: October 06, 2023, 04:40:44 PM by djaydino »

stigma

  • Full Member
  • ***
  • Posts: 218
Re: Bug Random Int ?
« Reply #2 on: October 07, 2023, 05:36:39 AM »
exact. I didn't know what it was for. THANKS