In the Guess My Number game, there is a lower limit and an upper limit for the range of possible numbers to guess. If the lower limit were inclusive and the upper limit exclusive, which expression would properly generate values for the secret number?
@Ultrilliam
I already looked there
Eh. e.e
@BenLindquist
uh???????????? elsa 123
@JustSaiyan
@Ultrilliam
@Vocaloid seems more like a math solution
Its Java
Question 3(Multiple Choice Worth 4 points) In the Guess My Number game, there is a lower limit and an upper limit for the range of possible numbers to guess. If the lower limit were inclusive and the upper limit exclusive, which expression would properly generate values for the secret number? (int)(Math.random() * (upper − lower) ) + lower (int)(Math.random() * (upper − lower + 1) ) + lower (int)(Math.random() * (upper − lower) ) + lower + 1 (int)(Math.random() * (upper − 1 − lower) ) + lower + 1 (int)(Math.random() * (upper − lower + 1) ) + lower − 1
So can you help?
Join our real-time social learning platform and learn together with your friends!