If you won't be using your iPad for a while, it's good practice to switch it off. You can power it down and switch it back on ...
To reset or change your iPad's passcode, you can use the "Passcode" menu in your Settings app, or reset the entire device.