int引数の関数に文字列の数字を渡す際に
mt_rand('5', '10')
mt_rand(intval('5'), intval('10'))
mt_rand((int) '5', (int) '10'))

どれが一番でしょうか?
5, 10は実際には変数です