Solved by ptrblck in post #3 
              
              
                The probability p will be used to determine, if the current image passed through the transformation will be transformed or not as seen e.g. here.