removed unused functions from random