How can I get a random number x% of the time

```
int randomNum = ThreadLocalRandom.current().nextInt(min, max + 1);

```

and y% of the times any number above 10.

Maybe trivial but I can not find a simple solution
Thanks for your help ! :)