Add-on Basic addon

I just need an addon that creates a page and the page has a form with a button. When the button is pressed, the xf_user table is updated and the user who clicked the button has a new column "gen_key" updated with a random 10 digit key. Thanks.

If anyone could do this, I'd be eternally grateful and indebted.