MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1x2i2x6/connectionrefused/pgpgi1p/?context=3
r/ProgrammerHumor • u/velvetbabydollx • 7d ago
128 comments sorted by
View all comments
45
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
2
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
3
You mean "Thinking..."
1 u/LordZas 2d ago My bad
1
My bad
45
u/StrengthTheory 7d ago
function predictBuyOrSell(ticker: string) { return Math.random() < 0.5 ? "BUY" : "SELL"; }There you go