Since you want to operate on an array with 6 elements, you need to initialize an array with that size before feeding it to the shift register.
---> Change size in "initialize array" to 6.
Also, note that "Round to nearest" will not give you an equal distribution. because the first slot gets only 0-0.5, while the second slot gets twice as many on the average (0.5-1.5), and so on. You should replace it with "round to -infinity" so all probablilties are equal (0-.999.., 1-1.999.., 2-2.999 ... 5-5.99...). (The chance of getting a "6" is infinitely small).