Stewart Gordon <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #1 from Stewart Gordon <> 2012-04-08 15:33:08 PDT ---
(In reply to comment #0)
> Created an attachment (id=867) [details]
> Patch for this suggestion
> rndGen always returns Random(usually MT) object. This is often useful, but
> randomShuffle cant't take other random generators.

It can, as of DMD 2.058 at least.  Its signature is

void randomShuffle(Range, RandomGen = Random)(Range r,
        ref RandomGen gen = rndGen)

The two parameters are the range to shuffle and the RNG to use to perform the

> I think following signature is better.
>     ref RandomGen rndGen(RandomGen = Random)()

What, exactly, would your rndGen function _do_ to the RandomGen object you pass
into it???

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to