Doesnt random pick a value between the limits you provide. If so this line should never return 5 as floor will round everything down to 4. If you use round or ceiling on the other hand that should work.
2 Likes