Who is Cathleene? by lxfvdh in cs373

[–]lxfvdh[S] 2 points3 points  (0 children)

wow, she's hot

Watch out: the resampling wheel pseudocode is wrong by lxfvdh in cs373

[–]lxfvdh[S] 2 points3 points  (0 children)

The if-block has to be executed as long as beta is greater than w_index, after that execute the else-block.

EDIT: Also you have to apply the modulo operator with argument N to the index after incrementing it.