select id_img, img_small FROM gallery order by rand() limit 1