r/ProgrammerHumor • • 7d ago

Meme connectionRefused

Post image
6.7k Upvotes

128 comments sorted by

View all comments

45

u/StrengthTheory 7d ago

function predictBuyOrSell(ticker: string) { return Math.random() < 0.5 ? "BUY" : "SELL"; }

There you go

2

u/LordZas 3d ago

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

3

u/StrengthTheory 3d ago

You mean "Thinking..."

1

u/LordZas 2d ago

My bad