playMaker

Author Topic: How to generate a random interger that is a multiple of 10 or 100[SOLVED]  (Read 1365 times)

ilovelessons

  • Junior Playmaker
  • **
  • Posts: 70
Hi,

I know how to use the Random Integer function, however for a game I am developing I need to generate a random multiple of 10 or 100. 

Is there any function to multiply a number by 10 also ???

Thanks guys
« Last Edit: May 15, 2017, 02:37:01 AM by jeanfabre »

terri

  • Sr. Member
  • ****
  • Posts: 386
    • terrivellmann.tumblr.com
Re: How to generate a random interger that is a multiple of 10 or 100
« Reply #1 on: May 14, 2017, 09:41:13 AM »
use Random Int and then Int Operator to multiply it by 10 or 100
is that what you mean?

ilovelessons

  • Junior Playmaker
  • **
  • Posts: 70
Re: How to generate a random interger that is a multiple of 10 or 100
« Reply #2 on: May 14, 2017, 10:04:58 AM »
Thanks a lot I didn't realize there was an Int Operator function.. that solves everything.. thanks a million man