1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Random Number Generator

Discussion in 'Skript' started by The77Gamer, Sep 16, 2022.

Thread Status:
Not open for further replies.
  1. The77Gamer

    The77Gamer Member

    Joined:
    Aug 16, 2022
    Messages:
    10
    Likes Received:
    0
    Im trying to make a random number generator for different numbers. eg: /random 100 300 and you would get like 221 or smth.
    Code (Text):
    1. command /random <text> <text>:
    2.     trigger:
    3.         send "%random number between arg-1 and arg-2%"
     
  2. Best Answer:
    Post #2 by Sabified, Sep 16, 2022
  3. Sabified

    Sabified Member

    Joined:
    Jun 5, 2022
    Messages:
    30
    Likes Received:
    2
    Code (Text):
    1. command /random <number> <number>:
    2.     trigger:
    3.         send "%random number between arg-1 and arg-2%"
    :emoji_wink:
     
    • Like Like x 2
  4. Pierrelasse

    Pierrelasse Active Member

    Joined:
    Apr 20, 2022
    Messages:
    114
    Likes Received:
    4
    send "%random number between 1 and 2%" # Gives 1, 1.4, 1.8, bla bla
    send "%random integer between 1 and 5%" # Gives 1, 3, 4, 2, bla bla

    (if you want to get a integer)
     
Thread Status:
Not open for further replies.

Share This Page

Loading...