Skip to content

array/shuffle not a random #25

Closed
Closed
@osorokotyaga

Description

@osorokotyaga

In current implementation the first element in source array never will be placed at first place at result array.
Seems like a bug in generating a random index at https://github.com/TinkoffCreditSystems/utils.js/blob/master/src/array/shuffle.js#L15

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions