mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-06 04:20:59 +08:00
- Multi-AI competition mode (Qwen vs DeepSeek) - Binance Futures integration - AI self-learning mechanism - Professional web dashboard - Complete risk management system
14 lines
329 B
JavaScript
14 lines
329 B
JavaScript
export default shuffler(Math.random);
|
|
|
|
export function shuffler(random) {
|
|
return function shuffle(array, i0 = 0, i1 = array.length) {
|
|
let m = i1 - (i0 = +i0);
|
|
while (m) {
|
|
const i = random() * m-- | 0, t = array[m + i0];
|
|
array[m + i0] = array[i + i0];
|
|
array[i + i0] = t;
|
|
}
|
|
return array;
|
|
};
|
|
}
|