Randomizations and probability calculations

@myriamdagher1, maybe this post discussed previously should give you some clue to your query: