code: def createRandomObjects(numObjects, locationsPerObject, featurePoolSize):
    
  
    allFeatures = range(featurePoolSize)
    allLocations = range(locationsPerObject)
    objects = dict((name,
                       [random.choice(allFeatures) for _ in xrange(locationsPerObject)])
                      for name in xrange(numObjects))
  
    return objects
docs: Generate random objects.
  
    @param numObjects (int)
    The number of objects to generate
  
    @param locationsPerObject (int)
    The number of points on each object
  
    @param featurePoolSize (int)
    The number of possible features
  
    @return
    For example, { 0: [0, 1, 2],
                   1: [0, 2, 1],
                   2: [2, 0, 1], }
    is 3 objects. The first object has Feature 0 and Location 0, Feature 1 at
    Location 1, Feature 2 at location 2, etc.