The Math.random() method returns a double result greater than or equal to 0.0 and less than 1.0. If you coerce this result into an Integer or int, then it is coerced to zero. Casting the result to int, or assigning it to an int field is probably a bug.
Type | Name and description |
---|---|
Class |
astVisitorClass |
String |
name |
int |
priority |