@grandom/shuffle
Version:
A configurable, flexible, seedable, and overall great random shuffler.
13 lines (12 loc) • 722 B
TypeScript
import { RandomGenerator, RandomEngine } from '@grandom/core';
import RandomStringShuffle from './RandomStringShuffle';
import RandomArrayShuffle from './RandomArrayShuffle';
import RandomObjectShuffle from './RandomObjectShuffle';
export default class RandomShuffle extends RandomGenerator {
constructor(engine: RandomEngine);
shuffle: InstanceType<typeof RandomStringShuffle>['shuffle'] & InstanceType<typeof RandomArrayShuffle>['shuffle'] & InstanceType<typeof RandomObjectShuffle>['shuffle'] & {
string: InstanceType<typeof RandomStringShuffle>['shuffle'];
array: InstanceType<typeof RandomArrayShuffle>['shuffle'];
object: InstanceType<typeof RandomObjectShuffle>['shuffle'];
};
}