Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need help with this java assignment part 3 & 4 it requires random numbers and cahracters class. makesure you import random generate please follow
I need help with this java assignment part 3 & 4 it requires random numbers and cahracters class. makesure you import random generate please follow the direction on the pictures.
add object as random has no static method
Highest grade : 100 3. (5) Use the Random class (don't forget to import Random) to generate 10 numbers in the range 0 - 50. You will need to do a little "shopping" in the Random API to determine the method that will return these values. There are no methods indicated here outside of main(). There is no user input required. A sample run of this program might look like: 48 40 6 25 45 34 39 1 20 41 4. (5) Knowing what you know about random numbers from above and two methods of the String class, charAt() and length(). generate 10 random characters from this string: ABCDEFGHIJKLMNOPORSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890!@#$%^&*0 HINTS: How many characters are in the above string? How do you generate a random number in the range of indices in the above string? How do you make your code return a character at a random position? where is 'A'? Remember if you can get one random character, you can generate all 10. A sample run of this program might look like: $%FreTO&6z Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started