I have written a code that outputs a series of numbers, where these numbers are elements of the array. But I have problem for large ranges of this array. System uses random variables for the array elements that have an index out of the range [0,11]. I want my program not to display the array elements with their index out of the range [0,11], simply prevent them from being printed. How can I restrict my output just down to the this range's elements?