ae.utils.random

ae.utils.random

Members

Functions

incrementalRandomShuffle
auto incrementalRandomShuffle(Range range, RandomGen gen)

Like randomShuffle, but returns results incrementally (still copies the input, but calls gen only as needed). Like randomCover, but much faster (O(n) instead of O(n^2), though less space-efficient.

incrementalRandomShuffle
auto incrementalRandomShuffle(Range range)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Authors

Vladimir Panteleev <ae@cy.md>