From: chris wang on
I understand the existence of unidrnd, which only allows me to generate non-negative ones from [1,N], is there a matlab function that can DIRECTLY generate discrete uniform random numbers from [a,b] without having to use unidrnd and then translate [1,N] to [a,b]?

Thanks.