It is a pseudo "random" number generator, just not necessarily a good one. Acts very similar to java's built in RNG, return a double in the range [0,1). Works by dividing the current nanosecond by pi then taking mod 1 to get just the decimal part.
DIY Random Number Generator Built as part of a challenge for GHW: Init 2023
It is a pseudo "random" number generator, just not necessarily a good one. Acts very similar to java's built in RNG, return a double in the range [0,1). Works by dividing the current nanosecond by pi then taking mod 1 to get just the decimal part.
Log in or sign up for Devpost to join the conversation.