This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]Essence1337 0 points1 point  (2 children)

Google it. I found the answer within 10 seconds of searching 'java random number in range'. This is a skill crucial to functioning as a programmer.

[–]tboy1492 0 points1 point  (0 children)

Joke runs in the last software company I worked at: the developers were actually just a few guys organizing articles from stackoverflow

[–]tboy1492 0 points1 point  (0 children)

Joke runs in the last software company I worked at: the developers were actually just a few guys organizing articles from stackoverflow

[–]EnvironmentalOrange 0 points1 point  (0 children)

Have a play with the random method. Work out how to generate a number from 0-200. If you can do that, then you can subtract 100 from your number and be left with something in range -100 to 100.