I have seen many places using Math.floor() and Math.random()
Math.floor()
Math.random()
like below
$(\'a.random-color\').hover(function() { //mouseove
Math.random returns value between 0 and 1. You are multiplying it with 256 so it will return some float value between 0 and 256. math.floor will omit fraction value from it.