Replace Math.random() with ThreadLocalRandom.current().nextDouble()
MSALReplace Math.random() with ThreadLocalRandom.current().nextDouble() to reduce contention.
org. openrewrite. java. migrate. util. ReplaceMathRandomWithThreadLocalRandomRecipemod run . --recipe= org. openrewrite. java. migrate. util. ReplaceMathRandomWithThreadLocalRandomRecipeInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.