I took your formula and set it to 25, 50, 75, 99. Ran it 5 times for each level. Results:
Level: 25
Level: 50
Level: 75
Level: 99
So, the higher the level, the higher the return value is. Here is what I used to generate them:
Code:
package test;
public class main {
public static void main(String args[]) {
System.out.println((int) (Math.round(25 / 10) * Math.random()));
System.out.println((int) (Math.round(25 / 10) * Math.random()));
System.out.println((int) (Math.round(25 / 10) * Math.random()));
System.out.println((int) (Math.round(25 / 10) * Math.random()));
System.out.println((int) (Math.round(25 / 10) * Math.random()));
System.out.println("===============================");
System.out.println((int) (Math.round(50 / 10) * Math.random()));
System.out.println((int) (Math.round(50 / 10) * Math.random()));
System.out.println((int) (Math.round(50 / 10) * Math.random()));
System.out.println((int) (Math.round(50 / 10) * Math.random()));
System.out.println((int) (Math.round(50 / 10) * Math.random()));
System.out.println("===============================");
System.out.println((int) (Math.round(75 / 10) * Math.random()));
System.out.println((int) (Math.round(75 / 10) * Math.random()));
System.out.println((int) (Math.round(75 / 10) * Math.random()));
System.out.println((int) (Math.round(75 / 10) * Math.random()));
System.out.println((int) (Math.round(75 / 10) * Math.random()));
System.out.println("===============================");
System.out.println((int) (Math.round(99 / 10) * Math.random()));
System.out.println((int) (Math.round(99 / 10) * Math.random()));
System.out.println((int) (Math.round(99 / 10) * Math.random()));
System.out.println((int) (Math.round(99 / 10) * Math.random()));
System.out.println((int) (Math.round(99 / 10) * Math.random()));
System.out.println("===============================");
}
}
Also, math.round rounds the number obviously, so if you do 99 / 10 you get 10(?), or 50 / 10 you get 5 right? So if you times it by 0.0 to 1.0 via math.random(), 10 * .3 = 3 seconds or cycles or whatever you using the variable for.
Your current method expanded:
Math.round = Rounds the number within the parenthesis to the closest whole number, eg: 9.3 = 9, 3.5 = 4.
/ = Divide a number by a number
Math.random = returns a value from 0.0 to 1.0
Math.round(moving the decimal point of the players fishing level to the right once) * a value 0.0 to 1.0
Hope this makes sense and helps you on your endeavor.