News for hackers. Stuff that matters.
Re:The Wi Flag -Turns out some players in Asheron's Call wer... by jefftk on Friday February 10, 2023 @12:54PM (#34743111)
In Python:

    random.choices(population=['A', 'B', 'C', 'D'],
                   weights=[3, 2, 5, 7])
https://docs.python.org/3/library/random.html#random.choices
Re:The Wi Flag -Turns out some players in Asheron's Call wer... by EarthLaunch on Friday February 10, 2023 @12:58PM (#34743159)
Thank you very much! That led me to a JS clone[0].

Python has amazing math libraries. I use numjs[1] for everything, which is a port of numpy. I frequently wish I had use of Python's libraries.

0: https://github.com/parmentf/random-weighted-choice

1: https://github.com/nicolaspanel/numjs