Updated random to not depend on lowerbetter. Added TODO for code