Laker is right about √2 It is an irrational number.
An irrational number is a real number that cannot be expressed as a simple fraction (a ratio of two integers, p/q), resulting in a decimal representation that is non-terminating (never ends) and non-repeating (no pattern). Essentially, they are numbers that aren't rational (not a ratio) and have infinite digits without repeating.
I am a Swift/C++/Java guy so I don't know if the python script provided produces this property of non-repeating digits or not or if they even care. I assume they just want a fairly long string of digits to test their theory.
I suspect if you used a binomial calculator that you would expect approximately 100 pair hits from 7 pairs about 90% of the time in 359 draws. If you do better than that then awesome.
I personally do this for pairs. I find a game where the 10 pairs constructed from a 5 digit string have skipped 10+ consecutive draws.
For instance right now in Florida the digit string 14578 which equates to pairs 14, 15, 17, 18, 45, 47, 48, 57, 58, 78 is overdue. None of these pairs has hit in the last 18 draws. These 10 pairs equate to 420 straight combos. You can divide the Pick 3 1000 combos into 580 heads and 420 tails. So you can kinda of say that if you are flipping a coin it has hit heads 18 times in a row or one of the other 580 combos that do not include these 10 pairs has hit 18 times in a row. So you would play for one of these pairs to hit or for tails to fall in the near term.
This is part of solution that I was able to parley into a very profitable system in 2025 using digits, pairs, and sums using similar probability concepts. There are 70+ pick 3 games in the US daily so it easy to find a game in favorable conditions for this type of play if you are able to play online with online payouts.
Good luck with your theories and learning python!