Corrected max_id error. Added get_randlink() with no arguments.