not sure if "more" or "less" random really make much sense mathematically ...
but maybe you could try a switch - case block , and run different code for different cases for different output of the random method.. that way , you can easily write up an increasing number of cases and well.. make it feel more random...
"more random"? I don't know what that means.
If your code is intended to enter the if block half the time at random, just use if (ran.nextBoolean())
... which is as random as Sun's mathematicians know how to make it.
If your code is intended to enter the if block half the time at random, just use
actually, there's no guarantee it will be executed half the time, or anywhere near half the time. That's what random means :)
Over an indefinitely long number of executions most likely it will be roughly half the time, but over any finite number there's no such statement as can be made except that the more iterations, the more likely it is to approach 50%.