MATLAB: Randint is undifined in 2018a

2018arandint

randint is undifined in 2018a

Best Answer

According to the Communications Toolbox Release Notes the randint function was removed in release R2016b. The suggested replacement is randi. Note that the order of the inputs to randi and the order of inputs to randint are different. The range is the third input to randint but the first input to randi (and it behaves a little differently if that range input is negative), so converting your code is not as simple as doing a Find and Replace.
Here's the documentation for randint in release R2012a for reference.