Javascrip onclick pick random html element and style it : Hello I am need some help with javascript
I am newbie self-taught

How can i code - I have a table and 2 buttons, when i press button I want to pick random table data (from 1 to 9) and change it background color

and when i press second button - change table data from 1 to 9 in order.

// my javascript knowledge is very low but i understand that i need to 
give id for my each table data, 
a button with onclick="random()", 
function random () - but i dont know how to pick random ID i gave for my td