def create_noise(length, level=<NUM_LIT:4>):
noise = bytearray(length)<EOL>adjust = <NUM_LIT> - int(level / <NUM_LIT:2>)<EOL>i = <NUM_LIT:0><EOL>while i < length:<EOL><INDENT>v = random.randint(<NUM_LIT:0>, <NUM_LIT>)<EOL>noise[i] = v % level + adjust<EOL>i += <NUM_LIT:1><EOL><DEDENT>return noise<EOL>
Create white noise for background