fix rand() bug
include <climits>