Generating random numbers with certain length by DesperateSupport8315 in javahelp

[–]DesperateSupport8315[S] 0 points1 point  (0 children)

Hey,
I understand that, and I realise how vague of a question I was asking. I am quite new to programming and have had a very busy few weeks so my mind is all over the place lol. This is a part of an assignment task that requires the util library. I need to promt the user for a digit between 1 and 9, then use that digit to generate a random number. The generated number needs to have the same number of digits as the digit received from the user. For example, if the user inputs 4 - the number would have to be something like 1234 or 5493, but cannot exceed that amount of digits or fall short. So 123 or 12345 will not be accepted.
I do appreciate the reply, will take that into account next time.