in , ,

My college roommate wrote a Python script to let RNG give him rewards when he finishes an assignment or gets up early (I told him he’s crazy for this).

My college roommate wrote a Python script to let RNG give him rewards when he finishes an assignment or gets up early (I told him he's crazy for this). | python-memes, random-memes, list-memes, rds-memes | ProgrammerHumor.io
python-memes, random-memes, list-memes, rds-memes | ProgrammerHumor.io

[text] spinner.py 2 I main import random rewardprobs Steam Deck 0.00001 nothing 0.5 next shower is warm 0.05 10 mins social media 0.1 game of league 0.05 eat takeout 0.05 10 mins of anything 0.05 10 mins of chess 0.05 read an article 0.1 two spins 0.04999 def spin return random.choiceslistrewardprobs.keys listrewardprobs.values 0 def main spinresult spin printspinresult if spinresult nothing with openrewards.txt a as f f.writespinresult n if name main main