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.

Three lines weighted random choice with Python

2 pointsby Manuelitoover 12 years ago
This post shows how to implement weighted random choice in python in just three lines of code.

no comments

no comments