Skip to content

Instantly share code, notes, and snippets.

View JanPokorny's full-sized avatar

Jan Pokorný JanPokorny

  • https://www.brainsoft.eu/
  • Brno, Czech Republic
  • LinkedIn in/jan-pokorny
View GitHub Profile
"""
Generates a self-referential test. There are 18 question-statements, answer to each being 1 (truth) or 0 (false).
Answer to the whole test is thus a 18-digit binary number.
"""
import random
questions_count = 18
convergence = 0.7