Changeset 261 for trollforge


Ignore:
Timestamp:
08/19/07 12:07:51 (6 years ago)
Author:
sam
Message:
  • Uneven distribution of movies.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trollforge/sam/libtroll/lol-tcm.py

    r260 r261  
    2323 
    2424list = [16659, 24800, 16716, 18327, 27316, 26572, 30421] 
     25lookup = [0, 0, 0, 0, 0, 0, 0, 
     26          1, 1, 1, 
     27          2, 2, 2, 2, 2, 
     28          3, 3, 3, 3, 3, 3, 
     29          4, 4, 4, 4, 
     30          5, 5, 5, 5, 5, 
     31          6, 6, 6, 6] 
    2532top200 = [1783, 328, 423, 1262, 85282, 24323, 414834, 1312, 91476, 632548, 
    2633  79852, 76693, 94482, 14882, 92840, 16095, 74357, 2134, 78984, 4372, 892, 
     
    4855for x in range(10): 
    4956    a = random.randint(0,len(list)-1) 
     57    if a < 7: 
     58        a = lookup[random.randint(0,len(lookup)-1)] 
    5059    list[a] = random.randint(1000,50000) 
    5160# On shuffle 
Note: See TracChangeset for help on using the changeset viewer.