To reset or change your iPad's passcode, you can use the "Passcode" menu in your Settings app, or reset the entire device.
If your Samsung Galaxy S10 is acting strange, here's how to "soft" reset your Galaxy, turning it off and on, or reset it to its factory settings.