Unless you are born an information theory genius, at some point during your programming learning you might have considered the following hypothesis:
“A file is a sequence of bytes. If I could find the appropriate seed for srand(), surely I could generate the file, just by successively calling rand() % 256? Therefore I could represent the file with just the seed and the expected file length.“
Continue reading “Enough! Why rand() cant compress!!!”