Java Generate Random Integer Matlab Plot