Math.random function

So currently I have a command that uses the Math.random function to pull a random name off a list of names when a specific command is given. Is there a way to weight this so the names on the list have different rarities as opposed to the same chance of being chosen? So for example most are super common, but two or three are really rare to come up.

Hiya, with $(eval) you can build your own logic in JavaScript that gives extra weight to certain names in your list. If you don’t know how to code, probably the easiest solution is to add the same name multiple times in your list.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.