Попробуйте следующее:
update lovalarm set lovsiteid = (select FLOOR(RAND() * (17300 - 14300) + 14300))
работает в MySQL