Permalink
Browse files

bug fix in user generator regarding possible 0 values

  • Loading branch information...
1 parent 86959ad commit 55fad0bedb6a664652f02d34e9f043f1fd174ecf Josh Attenberg committed Sep 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ClassTwoNotes/userGenerator.py
@@ -44,7 +44,7 @@
pruch_id = 0
while True:
purch_id = (1+int(round(random.lognormvariate(4, 4.5))))%50000
- if purch_id != :
+ if purch_id != 0:
break
u.addPurchase(purch_id)

0 comments on commit 55fad0b

Please sign in to comment.