@khanacademy/perseus-core
Advanced tools
Comparing version 0.0.0-PR2156-20250212210759 to 0.0.0-PR2156-20250213154814
@@ -104,2 +104,2 @@ export type { PerseusAnalyticsEvent, AnalyticsEventHandlerFn } from "./analytics"; | ||
export { default as getMatcherPublicWidgetOptions, shuffleMatcher, } from "./widgets/matcher/matcher-util"; | ||
export { default as RandomUtil } from "./utils/random-util"; | ||
export { shuffle, seededRNG, random } from "./utils/random-util"; |
type RNG = () => number; | ||
declare function shuffle<T>(array: ReadonlyArray<T>, randomSeed: number | RNG, ensurePermuted?: boolean): ReadonlyArray<T>; | ||
export declare const RandomUtil: { | ||
readonly seededRNG: (seed: number) => RNG; | ||
readonly shuffle: typeof shuffle; | ||
readonly random: RNG; | ||
}; | ||
export default RandomUtil; | ||
export declare const seededRNG: (seed: number) => RNG; | ||
export declare function shuffle<T>(array: ReadonlyArray<T>, randomSeed: number | RNG, ensurePermuted?: boolean): ReadonlyArray<T>; | ||
export declare const random: RNG; | ||
export {}; |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "0.0.0-PR2156-20250212210759", | ||
"version": "0.0.0-PR2156-20250213154814", | ||
"publishConfig": { | ||
@@ -9,0 +9,0 @@ "access": "public" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1565666
13063