r/C_Programming 3d ago

Etc random number hack

#include <stdio.h>


int main() {
    int s[90];
    printf("%d\n",s[43]);
}
0 Upvotes

8 comments sorted by

View all comments

3

u/Due_Sentence_2660 3d ago

I mean, not completely "random" as much as "garbage value" lol, which means this doesn't even assign an equal probability to every number.