playMaker

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

ilovelessons

  • Junior Playmaker
  • **
  • Posts: 70
    • View Profile
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 14, 2017, 11:37:01 PM by jeanfabre »

terri

  • Sr. Member
  • ****
  • Posts: 349
    • View Profile
    • terrivellmann.tumblr.com
Re: How to generate a random interger that is a multiple of 10 or 100
« Reply #1 on: May 14, 2017, 06: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
    • View Profile
Re: How to generate a random interger that is a multiple of 10 or 100
« Reply #2 on: May 14, 2017, 07:04:58 AM »
Thanks a lot I didn't realize there was an Int Operator function.. that solves everything.. thanks a million man