Question: A. Write a method named randomWord that accepts one int parameter and returns a String of that length with random (lower case) characters. Maybe

A. Write a method named " randomWord" that accepts one int parameter and returns a String of that length with random (lower case) characters. Maybe use the fact that char(97) is 'a' through char(122) is 'z' will help. Example use shown below. B. Write a method named "randomInt)" that accepts one int parameter and returns int (random) with exactly that many digits. Using randomlnt(2) we could return 22 or 54 or 42 etc... but 2 and 222 would not be acceptable. Example use shown below
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
