In chapter 9 demo project, you use a function randInRange to return a random stock index.
As The upper bound, you send stockIds.length - 1, though the upper bound is exclusive.
I changed it to stockIds.length.
### Note: Currently this small bug presents no symptoms, coincidentally, due to another bug (See #160) that adds a redundant item to the array.
After the fix presented in #160, the last stock never receive any updates.
In chapter 9 demo project, you use a function randInRange to return a random stock index. As The upper bound, you send stockIds.length - 1, though the upper bound is exclusive. I changed it to stockIds.length.
### Note: Currently this small bug presents no symptoms, coincidentally, due to another bug (See #160) that adds a redundant item to the array. After the fix presented in #160, the last stock never receive any updates.