script update

This commit is contained in:
2025-05-25 18:45:09 +02:00
parent 7f6e9dd10d
commit b52ac6313a
2 changed files with 68 additions and 34 deletions

View File

@@ -11,7 +11,7 @@ def generate_test_values(noise_bits, number, p_bits):
max_noise = (1 << noise_bits) - 1 # 2^noise_bits - 1
a = [str(p * random.randint(1, 2) + random.randint(0, max_noise)) for _ in range(number)]
a = [str(p * random.randint(1, max_noise) + random.randint(0, max_noise)) for _ in range(number)]
return noise_bits, a, p