• Resolved Mohsen

    (@msedighiyan86)


    HI , thanks for your amazing plugin.

    Hello, dear @codepeople. Thank you for your amazing plugin! I need your help!

    I understand how to make a random number which is between two numbers (1-10):

    ((Math.floor (Math.random()*10)+1)

    But how do I go about generating a random number which falls into multiple ranges?

    For example: number can be between 1 to 10 or between 51 to 60

    I try this, but it’s not working:

    ((Math.floor (Math.random()*10)+1)|(Math.floor (Math.random()*10)+51))
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.