1.0.4 • Published 3 years ago

xio-shuffle v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

基于维基百科中 Fisher–Yates 的原始算法

使用

import { shuffle } from 'xio-shuffle'

shuffle([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])

// output: [2, 5, 3, 8, 9, 1, 10, 4, 6, 7]

Todo

  • use babel
  • 完善使用方法,示例图,demo
1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago