For example, The function could be something like def RandABCD(n, .25, .34, .25, .25): Where n is the length of the string to be generated and the following numbers are the desired probabilities of A, B, C, D. I would imagine this is quite simple, however i am having trouble creating a working program. Any […]
I’m just curious… How do you simulate randomness? How is it done in modern OS (Windows, Linux, etc.)? Edit: Okay, NOT JUST GENERATING RANDOM NUMBER, which can be just done with calling rand() functions in most high level programming languages. But, I’m more concerned with how it is actually done in modern operating systems.