Solved Getting a random number

Discussion in 'Plugin Development' started by Forword, Apr 23, 2018.

Thread Status:
Not open for further replies.
  1. @Forword
    int success = (int) Math.random()*100;
    int failure = 100 - success;

    int[] rates = {success, failure};
     
    JanTuck likes this.
  2. Offline

    JanTuck

    We gave you the exact method to use... 3 times.
     
  3. @Forword
    Just make that into a method that returns an int array then call that method in your command and every time the command is run the array will be different
     
  4. Offline

    Forword

    Found a way to do it, Solved.
     
  5. Offline

    timtower Administrator Moderator

    Could you post that way?
     
Thread Status:
Not open for further replies.

Share This Page