r/ProgrammerHumor • • Oct 10 '26

Meme connectionRefused

Post image
6.7k Upvotes

128 comments sorted by

View all comments

44

u/StrengthTheory Oct 10 '26
function predictBuyOrSell(ticker: string) {
  return Math.random() < 0.5 ? "BUY" : "SELL";
}

There you go

16

u/pmmeuranimetiddies Oct 10 '26

Scale that by the historical exponential growth rate for that stock and it would probably be more accurate than the overfitted ML models finbros are producing

2

u/LordZas Oct 14 '26

Add a sleep(Math.random()*10)) so it shows computation time for the complex algorithm

3

u/StrengthTheory Oct 14 '26

You mean "Thinking..."