Search Header Logo

26-generate random number + java

Authored by ANIL KUMAR

English

Professional Development

26-generate random number + java
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

43 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you generate a random number in Java?

Import
Random
Instance
nextInt()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you generate a random number from 1 to 100 in Java?

Code
Random
Minimum
Maximum

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you generate a random number from 1 to 5 in Java?

Values
Formula
Math
Random

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you generate a random number between 1 and 50 in Java?

Math
Random
Instance
nextInt()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you generate a random number from 1 to 10 in Java?

ThreadLocalRandom
nextInt()
current()
parameters

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you generate a random 10-digit number in Java?

Code
Argument
nextInt()
Format

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you generate 20 random numbers in Java?

Code
Unique
nextInt()
Array

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?