If rand < par then
End If
Algorithm 2: Pseudocode of the second stage.