Hi,
neon wrote:I just think its strange for a long series of beep characters to be in array within an area of garbage memory (Which is why I posted out of interest).
The bell characters don't need to be in series - if you've got a bell character, then 20 other characters, then another bell character, then the computer will display those other character so fast that you won't be able to notice the extremely tiny gap between the bell characters.
Statistically, the chance of getting 1 bell character in 30 random bytes is 30/256 (11.7% chance), and the chance of getting 2 bell characters in 30 random bytes is about 1.37%. Garbage memory isn't truly random though. For example, maybe the area of memory was previously used as a buffer for text mode video data, and every second byte is 0x07 (the attribute bytes were "light grey foreground with black background").
Lastly, different virtual machines handle time differently. For example, one "guest second" might actually be 4 "host seconds", so maybe there's only one bell character...
Cheers,
Brendan