Jump to content




math.random, max and min?


  • You cannot reply to this topic
1 reply to this topic

#1 kalnat

  • Members
  • 14 posts

Posted 09 March 2014 - 11:47 AM

I havent used CC/lua in a while and I need help, is math.random(1, 2) correct for random picking 1-2 numbers or is it (0, 2)...

#2 mrpoopy345

  • Members
  • 148 posts
  • LocationMy Computer

Posted 09 March 2014 - 11:55 AM

Math.random(1, 2) Will pick either 1 or 2, while math.random(0, 2) will produce either 0, 1 or 2.
Hope that helps.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users