Comments (7)
@cauerego I mean caca overflow is usually bad, but having every testing suite in one place is just convenient TBH.
Otherwise, thanks for the info brother, this is really useful!
from random-number-generator.
This app is for casual use, and I haven't gotten many complaints about simple Math.rand(). I also can't find a smooth RNG library for Java/Kotlin within all these links.
from random-number-generator.
@cauerego Feel free to submit a PR. From my end, this app is in maintenance mode as I'm focusing on other apps. If there isn't clear user value, then there's other things worth working on as you can always improve any product in infinite ways.
If you do submit a PR, please do profiling to make sure it doesn't regress the performance of the app: https://kostenko.org/blog/2019/04/java-spedup-random-generation.html
from random-number-generator.
well, i tried.
this patch should work without issues:
https://github.com/Gear61/Random-Number-Generator/compare/master...cauerego:patch-1?expand=1
but gradle didn't work as expected, even for master:
https://github.com/cauerego/Random-Number-Generator/actions/runs/506351445
this is as far as i could go today, working with nothing but a cellphone, so i couldn't really test it.
from random-number-generator.
the wikipedia link is spot on! the crap overflow (long story what i mean by crap here) one, not so much.
this is important to so much more than just rpg, cryptography, banks, and ai... but i rather not get into details here.
just wanted to give a special thanks for the link, donald.
and reinforce how amazing and way overlooked /dev/urandom
is! just learned about it today, thanks to ya! 🥰
and, from your first link, got many better links for knowing which one works (don't even need to test):
https://en.m.wikipedia.org/wiki//dev/random the many links are here.
https://www.2uo.de/myths-about-urandom/ might be all you need to know, summarized.
edit: any dedicated rng program should offer 2 options. a blocking option (that might mean /dev/random if you're not in freebsd) and the non blocking one. i like to argue the blocking one should be default. because when we actively seek for randomness we also want one concept that haven't been brought up anywhere i've read about true randomness: locality. it's also not related to the physical quantum term. or anything i could read anywhere. reason why i keep trying to write about it.
cheers! 😘
from random-number-generator.
@Gear61 thanks for the feedback!
library? you could just call it straight up... or use SecureRandom:
https://stackoverflow.com/a/58182522/274502 (donald, u might enjoy this link, found it thanks to gear)
you shouldn't work based on complaints only... 🤣
and the beauty of life is basically casual! 😘
from random-number-generator.
anyway...
since this apparently won't go anywhere, if anyone also feel the need for better randomness, i advise to use the terminal (in android, i use termux):
shuf -i 0-100 -n 1 --random-source=/dev/urandom
now this can pretty much do all the same things as the app...
but i still want to improve it, and make it keep trying random numbers until it reaches a pre selected number or range, and then pick on the lotto!
if i don't edit this one enough to include this complex command or script, please, do nag me... or even better, include it yourself!! 😁
from random-number-generator.
Related Issues (20)
- Delete RNG configurations and replace them with settings save like other screens
- Enhancement needed HOT 1
- Clear history option
- Persist history
- Question about PRNG HOT 7
- Show RNG type in history dialog title
- Limit history to 20
- Request/release audio focus when playing sounds
- Move media logic to a manager class instead of activity
- Add ability to speak results
- Sum can overflow HOT 1
- RNG min/max range is asymmetric HOT 1
- Duplicate number prevention isn't respected 100% of the time HOT 1
- Raffle Support HOT 1
- More Dice Support HOT 4
- Add this app to F-Droid HOT 2
- Dice Probability Analysis HOT 1
- Random class is not too random HOT 1
- Play Store won't install app on Android 14 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from random-number-generator.