Definition of suspend. 1  transitive verb. 2  1 : to debar temporarily especially from a privilege, office, or function suspend a student from school. 3  2a : to cause to stop temporarily suspend bus serviceb : to set aside or make temporarily inoperative suspend the rules. 4  3 : to defer to a later time on specified conditions suspend sentence.
The range of an int data type is -2,147,483,648 to 2,147,483,647. Smallint represents an integer value that can be stored in 2 bytes. 2^(n-1) is the formula to find the maximum of a Smallint data type. In the preceding formula N is the size of the data type. The ^ operator calculates the power of the value.
It denotes the upper limit for the range of numbers. However, the upper limit number is not included as one of the numbers that can be picked. That might sound confusing but the nextInt() method works from zero upwards. For example: will only pick a random number from 0 to 39 inclusively. To pick from a range that starts with 1, simply add 1 to the result of the nextInt() method. For example, to pick a number between 1 to 40 inclusively add one to the result: If the range starts from a higher number than one you will need to: