Advertisement
JkSoftware

Day 4 - Random Module

Nov 6th, 2021
838
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import random
  2.  
  3.  
  4. randomnum = random.randint(1, 5)
  5. ranfloat = random.random()
  6. numbum = randomnum + ranfloat
  7. otherway = ranfloat * 5
  8. print(randomnum)
  9. print(ranfloat)
  10. print(numbum)
  11. print(otherway)
  12.  
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement