added random function
add the floor function