TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Adventures in testing go randomness and the awkwardness of using rand.Intn

1 pointsby sagiaalmost 3 years ago

1 comment

sagiaalmost 3 years ago
Decided to give a shot and do a short write up regarding an odd moment of writing unit tests for some functions that required randomness. hope this might help someone in the future stumbling on similar use cases