Update random_functions

Added the 'find midpoints' function