Small change to RandomItemFactory

Needed to use the Math.abs function to insure indexes are positive.