|
|
template <class T> const T* random(const T* b,const T* e);
None.
Returns a uniformly distributed random pointer into the array. If b>=e, the function returns 0.
O(1).
Uses drand48(3C) to obtain a pseudo-random number.
Because a Block (see Block(3C++)) can always be used wherever an array is called for, Array Algorithms can also be used with Blocks. In fact, these two components were actually designed to be used together.