How to get the random positioning of different integer values?