|Posted: January 30, 2015, 2:20 pm - IP Logged|
BUILD SUCCESSFUL (total time: 0 seconds)
Seed is optional.
r.nextInt(10); //A digit.
Long seed with long simple type.
long: The long data type is a 64-bit two's complement integer. The signed long has a minimum value of -263 and a maximum value of 263-1. In Java SE 8 and later, you can use the long data type to represent an unsigned 64-bit long, which has a minimum value of 0 and a maximum value of 264-1. Use this data type when you need a range of values wider than those provided by int. The Long class also contains methods like compareUnsigned, divideUnsigned etc to support arithmetic operations for unsigned long.