Multiple occurrences found: Negative values in ran5