what dose this code do exactly?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shahram555
    New Member
    • Aug 2014
    • 4

    what dose this code do exactly?

    Code:
    import random
    for i in range(10):
        x=random.triangular(1,2,3)
        print(x)
    Last edited by bvdet; Aug 11 '14, 12:41 PM. Reason: Fix indentation
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    It prints out 10 random numbers from a triangular distribution.

    Comment

    Working...