Skip to content

Instantly share code, notes, and snippets.

@jnozsc
Created July 4, 2020 03:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnozsc/8c9b713de875132e64183cb2edebf6b3 to your computer and use it in GitHub Desktop.
Save jnozsc/8c9b713de875132e64183cb2edebf6b3 to your computer and use it in GitHub Desktop.
import random
def main():
d = input("桁数を入力してください\n")
try:
d = int(d)
except:
print("入力エラーがありますので、桁数2に")
d = 2
for _ in range(10):
print(random.randrange(0, 10 ** d))
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment