immagazzini tutti i valori in una tabella del tipo id, urlimage,urlwebsite,clicks

e poi fai una query SELECT COUNT(*) FROM banners. Il risultato usi una funzione random. Il numero che esce lo query: SELECT * FROM banners WHERE id='numerorandom'