Randomize user ids and item ids when parsing input matrix