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


Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0