the range for randomR is inclusive
add update script