blob: eef9e5d27b59afe8e13720f564bcab995e95aca4 (
plain)
1
2
3
4
5
6
7
8
9
10
|
import random
measurement = random.randint(0, 200)
above_threshold = False
i = 0
while i < 5: # [magic-value-comparison]
above_threshold = measurement > 100 # [magic-value-comparison]
if above_threshold:
break
measurement = random.randint(0, 200)
|