Advertisement
Femn0X

sols rng in pyython lol

Dec 25th, 2024
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | Software | 0 0
  1. import turtle as t
  2. import random as r
  3. a=0
  4. while True:
  5.  x=r.randint(0,100000000)
  6.  print(x,end="\r")
  7.  if x==0:
  8.   print("0.000001%")
  9.   break
  10.  elif x<=10:
  11.   print("0.00001%")
  12.  elif x<=100:
  13.   print("0.0001%")
  14.  elif x<=1000:
  15.   print("0.001%%")
  16.  elif x<=10000:
  17.   print("0.01%")
  18.  elif x<=100000:
  19.   print("0.1%")
  20.  elif x<=1000000:
  21.   print("1%")
  22.  elif x<=10000000:
  23.   print("10%")
  24.  elif x<=100000000:
  25.   print("88.88...%")
  26.  t.sleep(1)
Tags: #python
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement