Skip to main content

All Questions

Tagged with
4 votes
1 answer
2k views

Java game that generates and compares random numbers, looking for matches

I have written some Java code for a school assignment. It is a game, and it works as follows: The game makes 4 random numbers, all different, as the users ticket. It then generates 4 other random ...
user avatar
10 votes
2 answers
2k views

Guess a random number between a selected interval

My project for my class is to create a Java-based game where the user must enter a number between 1-20 and a number between 250 and 300. The computer randomly chooses a number between those 2 numbers. ...
user avatar
2 votes
1 answer
821 views

Guessing a random number between a range of numbers

What is the general design pattern for declaring variables in a class? I have a homework assignment to create a simple Java program which asks the user for a range of two variables. The program then ...
Paolo Bernasconi's user avatar
11 votes
4 answers
4k views

Turning an array of words into a random license plate

This is an assignment question from school: Write a method called licencePlate that takes an array of objectionable words and returns a random licence plate that ...
cook cook's user avatar
  • 213