optimizing random functions