Match the generators and their definitions.
Random
Generators
Report a typo
Match the items from left and right columns
Random.nextInt()
Random.nextLong()
Random.nextFloat()
Random.nextDouble()
Generates a random integer number between INT.MIN_VALUE and INT.MAX_VALUE (inclusive)
Generates a long value between Long.MIN_VALUE and Long.MAX_VALUE (inclusive)
Generates a float value between 0 (inclusive) and 1.0 (exclusive)
Generates a double value between 0 (inclusive) and 1.0 (exclusive)
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.