Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def main():
- count = 1
- x1 = 0.6311
- random(x1, count)
- def random(x, count):
- sq = x * x
- strsq = str(sq)
- if len(strsq) != 10:
- strsq += '0000'
- print(strsq[4:8])
- strsq2 = (strsq[4:8])
- nextx = int(strsq2) / 10000
- count += 1
- if count == 996:
- exit()
- else:
- random(nextx, count)
- if __name__ == "__main__":
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement