The safest way to get out of a rip current is to first go out the side of the current then go back to the beach keep in mind that you should also if a friend is with you use double power and go in the same direction and make sure your parent calls 911 or coast guard
Cheers!
AlexFray555