Inspiration
I always thought about how the Random class in Java worked and what it used to generate a random number, but I never figured it out. This hackathon helped me find my own way (it's not completely random though) to generate random numbers.
What it does
Generates a random number within a given range (given as input).
How we built it
Used the current local time seconds to generate a random number.
Challenges we ran into
Actually thinking of how to generate a completely random number without the Random class.
Accomplishments that we're proud of
Figuring out that the local time should, in theory, give a different number every time.
What we learned
There are a few ways to generate your own random number, but it can't actually be completely random.
What's next for Random Number Generator
I might try using this in some of my other projects.
Built With
- intellij-idea
- java
- scanner
- time

Log in or sign up for Devpost to join the conversation.