Random Integer Help

  • 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 community!

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

HI46

Member
Apr 25, 2021
2
0
1
How can I exclude the {_x} that was drawn in #1 and draw lots in #2?

For instance: If "5" is assigned to {_x} in #1, I'm looking for a way to exclude "5" from the lottery in #2.

Look at the code below.
code_language.skript:
set {_x} to a random integer between 1 and {_size}    #1
set {_y} to a random integer between 1 and {_size}   #2

code_language.skript:
set {_y} to a random integer between 1 and {_size} exclude {_x} from {_y}
This code doesn't work.
 
Last edited:
Status
Not open for further replies.