Skip to main content
added 128 characters in body
Source Link
Carra
  • 4.3k
  • 27
  • 28

Let it run a bunch of times and visualize your data.

Here's an example of a shuffle from Coding Horror, you can see that the algorithm is OK or not:

enter image description here

It's easy to see that every possible item is returned at least once (the boundaries are OK) and that the distribution is OK.

Let it run a bunch of times and visualize your data.

Here's an example of a shuffle from Coding Horror, you can see that the algorithm is OK or not:

enter image description here

Let it run a bunch of times and visualize your data.

Here's an example of a shuffle from Coding Horror, you can see that the algorithm is OK or not:

enter image description here

It's easy to see that every possible item is returned at least once (the boundaries are OK) and that the distribution is OK.

Source Link
Carra
  • 4.3k
  • 27
  • 28

Let it run a bunch of times and visualize your data.

Here's an example of a shuffle from Coding Horror, you can see that the algorithm is OK or not:

enter image description here