4 ms·
How would you write a regex that does this? How do you determine whether a string of characters is random?
by nexuist 6y ago
How would you write a regex that does this? How do you determine whether a string of characters is random?
- Blackthorn 6y agoThe classic way to do it is see how well it compresses, though that requires a certain minimum length.
- Cthulhu_ 6y agoYou can probably calculate the entropy / randomness of a string via a fairly simple algorithm.