Random Number

Random Number


Random Number was my (Stone_Tigris) first project and plugin ever. I was learning Java and it wasn't that great, and after a month it became discontinued. Darkcop asked if he could relaunch it and code it again from scratch, making it better. He is the new maintainer, and the project will be mostly run by him. This time, I hope the plugin stays continued for much longer. We hope you can try it out!

About the Plugin

Random Number will generate random numbers for you whenever you may need them. It generates a random number between 1 and 20, and then sends the player a message with the number, and broadcasts it to the rest of the server. There is now a config file which you can set your minimum and maximum number, by default they are set to minimum of 1 and the maximum of 20.

Permissions and Commands

Keep up to date

MCStats Image

MCStats - Random Number

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of KelvinKam KelvinKam Sep 15, 2013 at 04:50 UTC - 1 like

    Can you add the command like /rngen 1 50 ,then the plugin will gen the number is 1 to 50 ?

    Last edited Sep 15, 2013 by KelvinKam


  • Avatar of mewetea119 mewetea119 Jul 25, 2013 at 06:50 UTC - 0 likes

    can someone give a more detailed explination of how to use/set the 'customcommandongenerate' option in the config? id like to be able to award prizes when someone rolls. can i do that with this?

  • Avatar of Corsicaman Corsicaman May 27, 2013 at 20:23 UTC - 0 likes

    <<reply 1520350>>

    Great! Any idea when it will be done?

  • Avatar of Th3Darkcop Th3Darkcop May 27, 2013 at 15:44 UTC - 0 likes

    @Corsicaman: Go

    I'll give it a go


  • Avatar of Corsicaman Corsicaman May 25, 2013 at 23:18 UTC - 0 likes

    Big request: make each number able to activate a command you write in the config, to make it like a customizable lottery. For example number 1 gives you money via /eco give [player] [amount] , number 2 gives you a better rank via a permission plugin's command etc. Would that be doable?

  • Avatar of LogicalKnight LogicalKnight May 14, 2013 at 00:48 UTC - 1 like

    @CommodoreAlpha: Go

    It must generate numbers in a pseudorandom fashion as the methods Java uses are based off of an computerized algorithm for generating random numbers. As far as I'm concerned the Java random code is composed of various functions mashed together. Here's the actual code for it:

     public int nextInt(int n) {
       if (n <= 0)
         throw new IllegalArgumentException("n must be positive");
       if ((n & -n) == n)  // i.e., n is a power of 2
         return (int)((n * (long)next(31)) >> 31);
       int bits, val;
       do {
           bits = next(31);
           val = bits % n;
       } while (bits - val + (n-1) < 0);
       return val;
  • Avatar of Th3Darkcop Th3Darkcop May 11, 2013 at 13:52 UTC - 0 likes

    Hey guys, I've just uploaded a new update! Bukkit still need approve the update, so you can wait or download the newest version off my site!

  • Avatar of jackattackbusa jackattackbusa May 11, 2013 at 02:05 UTC - 0 likes

    Thx dude for getting back to me

  • Avatar of Th3Darkcop Th3Darkcop May 10, 2013 at 09:22 UTC - 0 likes

    @jackattackbusa: Go

    Ill see what I can do :D

    EDIT: There's a huge update coming, should be uploaded tomorrow

    Last edited May 10, 2013 by Th3Darkcop


Date created
Jan 09, 2012
Last update
Jul 04, 2013
Development stage
  • enUS
All Rights Reserved
Curse link
Random Number
Recent files