r/shittyprogramming • u/Smellypuce2 • Jul 31 '18
Shitty RNG
int random_number()
{
int result;
return result;
}Found in my own codebase and it gave me a good chuckle. It was never used and I can't remember what I was originally going to write. I stopped before actually writing the function out and this is what was left.
98
Upvotes
View all comments
Show parent comment
23
u/UnspeakableEvil Jul 31 '18
That's the problem with randomness, you can never be sure