UPDATE `table` SET col = MD5(RAND()) WHERE condition=TRUE;