random_selection chooses items at random from a random access iterator range which is useful to produce degenerate input data sets with multiple entries of identical items.
#include <CGAL/random_selection.h>
| ||||
|
| |||
chooses a random item from the range and
writes it to result, each item from the range with equal
probability, and repeats this times, thus writing items to
result.
A single random number is needed from rnd for each item.
Returns the value of result after inserting the items. Precondition: Random is a random number generator type as provided by the STL or by Random. |