need urgent help

closed account (2wpSLyTq)
jkygbylbihuhnnb;i
Last edited on
closed account (2wpSLyTq)
It's a card shuffling program can someone help please?
Last edited on
easy just sort the array based on random

something like

1
2
3
4
5
bool f(){
return rand() % 100 < 50;
}

sort( array.begin(), array.end(), f );


I haven't test my own code. It defenitely won't compile.
This is just one of the way to shuffle an array.
Topic archived. No new replies allowed.