Am currently running load test with jmeter triggering 300 request per second concurrently. My application need to generate non duplicate random number, but with these many requests it failing. I cant store it in an set ot Map to prevent duplication, as it take some more time for computation.
So far i have tried
System.currentTimeMillis();
System.nanoTime()
ThreadLocalRandom
All these implementation provide duplicate at some point.