
5 Oct
2007
5 Oct
'07
12:03 a.m.
I am at the point in my application where I must introduce randomness to
a sort routine. Basically when 2 elements are equal, I need to create a
50% probability that they will be swapped.
What is the correct boost::random library resource to code this?
I've attempted to use uniform_01, by creating an instance of it with
this type:
typedef boost::uniform_01