modified rand() % (SIZE - transc_size), added sorted_set