Old thread stuff below. I know this might not even be possible but I have to get this work somehow: Code: boolean count = plugin.config.getBoolean("ListMotds.Count"); Random r = new Random(); int num = r.nextInt(count) + 1; How would I make it work?