Random function

Hello! :worried:

What is the best way to find a random number that is not equal to two specific values?
ex:

  1. find random number (let’s say from 0 to 5)
  2. check if the result is not 4 or 5
  3. If it is, run the random function again and again until the condition is met.

Or maybe there’s a way to set up that at once (find random number that is not equal to 4 or 5).
Thanks!