Random integers produced by randrange. : Random : Development PYTHON examples


PYTHON examples » Development » Random »

 

Random integers produced by randrange.


Random integers produced by randrange.
 
import random


# simulates 20 die rolls
for i in range121 ):       
   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 examples

 Navioo Development
» Random