How to generate random positive and negative numbers in Java [duplicate]

You random on (0, 32767+32768) then subtract by 32768

Leave a Comment