adding code to make random allocation, or to make allocation by random serial dictatorship