Random integers produced by randrange. : Random : Buildin Module PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Module » Random »

 

Random integers produced by randrange.


import random

for i in range121 ):  # simulates 20 die rolls
   print "%10d" random.randrange1) ),
   if i % == 0:  # print newline every rolls
      print



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Buildin Module
» Random