Skip to content

Instantly share code, notes, and snippets.

View yesview's full-sized avatar
🦉

David Lanchava yesview

🦉
View GitHub Profile
import random
import json
def generate_test_result(is_healthy):
result = random.randrange(0, 10)
if result <= 7:
return is_healthy
return not is_healthy