Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jacobwinters/random-value
The world's worst interface to a random number generator
https://github.com/jacobwinters/random-value
bad-idea
Last synced: 7 days ago
JSON representation
The world's worst interface to a random number generator
- Host: GitHub
- URL: https://github.com/jacobwinters/random-value
- Owner: jacobwinters
- License: cc0-1.0
- Created: 2018-12-31T18:08:17.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-31T18:08:24.000Z (almost 6 years ago)
- Last Synced: 2023-10-17T13:34:01.727Z (about 1 year ago)
- Topics: bad-idea
- Language: C++
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# The world's worst interface to a random number generator
```c++
// It's the random number generator that looks like a number!
RandomInt x(1000);
// You can use it like a normal int
cout << 3 * x + 2 << endl; // Printed 2174
// But it has a new value every time you use it!
cout << 3 * x + 2 << endl; // Printed 1346
```## This is horrifying. Why did you make it?
Because I could.## Should I use it in my code?
Please don't.## *Can* I use it in my code?
It's licensed under CC0, so I suppose I can't stop you.