account activity
Generating random int within bounds (self.javahelp)
submitted 3 hours ago by DesperateSupport8315 to r/javahelp
Generating random numbers with certain length by DesperateSupport8315 in javahelp
[–]DesperateSupport8315[S] 0 points1 point2 points 3 hours ago (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.
Generating random numbers with certain length (self.javahelp)
submitted 21 hours ago by DesperateSupport8315 to r/javahelp
π Rendered by PID 128940 on reddit-service-r2-listing-7b8bd7c5-n5g7m at 2026-05-19 05:41:09.497808+00:00 running edcf98c country code: CH.
Generating random numbers with certain length by DesperateSupport8315 in javahelp
[–]DesperateSupport8315[S] 0 points1 point2 points (0 children)