alex ja wrote:
I no want to use the Math.random and Random function in java.
Stephan van Hulst wrote:Well, there's quite some alternatives, but none as easy as just using Random. Is this an exercise?
You can reasonably simply implement a seeded random number generator using a xorshift algorithm, but you'd still need to generate a random seed, which is not easy.
alex ja wrote:
Is there possible to generate negative and positive number? Because i only able to generate positive number without negative if using seed...
There are three kinds of actuaries: those who can count, and those who can't.
alex ja wrote:Is there possible to generate negative and positive number? Because i only able to generate positive number without negative if using seed...
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Tim Holloway wrote:There are 3 things that "clever" people should never do. One is create their own encryption system, one is create their own security system, and the third is create their own random number generator. That's because all 3 of those things have subtleties that being a mere genius don't suffice for.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
If you open the box, you will find Heisenberg strangling Shrodenger's cat. And waving this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|