Display a variable according to a probability

@nohandoye, maybe this post discussed previously should be helpful for you: