title: bound must be positive
body: <p>Here is the error I keep on getting, which I understand, but can't fix, because I don't know what the problem is.</p>
  <pre><code>[14:25:50 ERROR]: Could not pass event BlockBreakEvent to SurgeGlowstone v1.0
  org.bukkit.event.EventException
          at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:297) ~[custom.jar:git-PaperSpigot-a925999]
          at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[custom.jar:git-PaperSpigot-a925999]
          at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:513) [custom.jar:git-PaperSpigot-a925999]
          at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:498) [custom.jar:git-PaperSpigot-a925999]
          at net.minecraft.server.v1_7_R4.PlayerInteractManager.breakBlock(PlayerInteractManager.java:264) [custom.jar:git-PaperSpigot-a925999]
          at net.minecraft.server.v1_7_R4.PlayerInteractManager.dig(PlayerInteractManager.java:118) [custom.jar:git-PaperSpigot-a925999]
          at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:569) [custom.jar:git-PaperSpigot-a925999]
          at net.minecraft.server.v1_7_R4.PacketPlayInBlockDig.a(PacketPlayInBlockDig.java:41) [custom.jar:git-PaperSpigot-a925999]
          at net.minecraft.server.v1_7_R4.PacketPlayInBlockDig.handle(PacketPlayInBlockDig.java:65) [custom.jar:git-PaperSpigot-a925999]
          at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:189) [custom.jar:git-PaperSpigot-a925999]
          at net.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java:103) [custom.jar:git-PaperSpigot-a925999]
          at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:801) [custom.jar:git-PaperSpigot-a925999]
          at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:286) [custom.jar:git-PaperSpigot-a925999]
          at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:651) [custom.jar:git-PaperSpigot-a925999]
          at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:557) [custom.jar:git-PaperSpigot-a925999]
          at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [custom.jar:git-PaperSpigot-a925999]
  Caused by: java.lang.IllegalArgumentException: bound must be positive
          at java.util.Random.nextInt(Random.java:388) ~[?:1.8.0_131]
          at com.surgehcf.listeners.PlayerListener.onBreak(PlayerListener.java:49) ~[?:?]
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131]
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_131]
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_131]
  </code></pre>
  <p>And here is my code:</p>
  <pre><code>public static int randInt(int min, int max) {
  
      // NOTE: This will (intentionally) not run as written so that folks
      // copy-pasting have to think about how to initialize their
      // Random instance.  Initialization of the Random instance is outside
      // the main scope of the question, but some decent options are to have
      // a field that is initialized once and then re-used as needed or to
      // use ThreadLocalRandom (if using at least Java 1.7).
      Random rand = new Random();
  
      // nextInt is normally exclusive of the top value,
      // so add 1 to make it inclusive
      int randomNum = rand.nextInt((max - min) + 1) + min;
  
      return randomNum;
  }
  @EventHandler
  public void onBreak(BlockBreakEvent e) {
      Player p = e.getPlayer();
      Block b = e.getBlock();
      JsonBox bx = GlowstoneMountain.getInstance().getRegionAqui(b.getLocation());
      if (bx != null &amp;&amp; b.getType() == Material.GLOWSTONE &amp;&amp; b.getWorld().getName().equalsIgnoreCase(&quot;world_nether&quot;)) {
          b.getWorld().dropItemNaturally(b.getLocation(), new ItemStack(Material.GLOWSTONE_DUST,randInt(4,2)));
      }
  }
  </code></pre>
  <p>I always do a random integer between 4 and 2. But, still it's saying the negation of what I want: an integer between 2 and 4, to get a random output.</p>