remove choose_pivot function from generic.h
adding a more generic interval RANDOM() function