Forum Discussion
M_McDonald
16 years agoSuper Contributor
Not sure how it would affect "randomness" but what about taking the absolute value?
[tt:3e5goql9]long randomVal = Math.abs(random.nextLong());[/tt:3e5goql9]
[tt:3e5goql9]long randomVal = Math.abs(random.nextLong());[/tt:3e5goql9]