I am trying to generate N random x values to pass to a charting component. The only concern is that they need to be sorted. I was wondering whether there is any better way than generating N points, sorting them, and then generating values for each of them?
Share
Just generate the points with random and use Arrays.sort() function