Java Generate Random Integer Matlab