const pickRoomNumber = () => {
const ss = SpreadsheetApp.getActive();
const sh = ss.getActiveSheet();
const options = sh
.getRange('G2:G')
.getValues()
.flat()
.filter((x) => x.toString().length > 0);
const pos = Math.floor(Math.random() * options.length);
sh.getRange('D1').setValue(options[pos]);
};