فهرست منبع

renamed random to randomness-test-file

Paola Fontana Gasio 4 سال پیش
والد
کامیت
34fff2600e
1فایلهای تغییر یافته به همراه0 افزوده شده و 16 حذف شده
  1. 0 16
      tests/random

+ 0 - 16
tests/random

@@ -1,16 +0,0 @@
-import random
-
-def normal(mu):
-    return int(round(random.normalvariate(mu,3),0))
-
-for i in range (10):
-    pm = random.randint(0,1)
-    next_note = normal(2)
-    if pm == 1:
-        while next_note > 0:
-            next_note = normal(2)
-    else:
-        while next_note <= 0:
-            next_note = normal(-2)
-    print(pm, next_note)
-