need a random number?
This is a demo app showing basic usage of the Bogue library. More sophisticated examples are bogue-demo or the snoke game.
Click on the 'randomize' button, and it will give you a random number. Very handy if you don't have a dice in your pocket. Or a coin to flip. Or if you want to predict the upcoming National Lottery.
Moreover, it will give you a much better random number than a simple call to "rand" from your favorite library, because it depends on the duration of the button press, which is very hard to reproduce. No kidding.
Of course, you can customize the interval of numbers you expect. So this is a truly complete app!
Linux KDE:
(large version here).
See the video capture in the repository, or from Youtube.
You can try the linux binary. It requires the SDL2 library. You can also compile it if you have ocaml and the Bogue package:
opam pin https://github.com/sanette/randomize.git
Then just run ./randomize
If you want to try without installing, simply clone the git repository, and
dune exec bin/main.exe