function y = random_int(from,to) y = floor(from + (1 + to - from)*rand);