Let’s imagine hypothetically you were working on software that placed landmines in a minefield grid and you had a function that given the dimensions of a minefield, and a safe cell, you had to randomly place a certain number of landmines in the other cells of the grid. It looks something like this: randomlyPlaceMines/index.js: Since this function … Continue reading “Unit Testing Randomness”

https://watirmelon.blog/2016/09/07/unit-testing-randomness/