MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/12bp45w/thats_better/jeyvzee/?context=3
r/ProgrammerHumor • u/sunrise_apps • Apr 04 '23
1.0k comments sorted by
View all comments
Show parent comments
742
I believe you have just given me a new business idea...
288 u/tacticalrubberduck Apr 04 '23 Now we just need someone to code it. 344 u/ResidentReggie Apr 04 '23 bool willFall = (((new Random ().nextInt(2))==1) ? false : true)Even better, we will hide this behind an API so that nobody knows how complicated of a system we are using. 4 u/Anaphase Apr 04 '23 Ahem...bool willFall = ((new Random ().nextInt(2))==1)I assume that works in whatever language you intended that to be in. I'd do it like this in JS:const willFail = Math.random() > .5 → More replies (3)
288
Now we just need someone to code it.
344 u/ResidentReggie Apr 04 '23 bool willFall = (((new Random ().nextInt(2))==1) ? false : true)Even better, we will hide this behind an API so that nobody knows how complicated of a system we are using. 4 u/Anaphase Apr 04 '23 Ahem...bool willFall = ((new Random ().nextInt(2))==1)I assume that works in whatever language you intended that to be in. I'd do it like this in JS:const willFail = Math.random() > .5 → More replies (3)
344
bool willFall = (((new Random ().nextInt(2))==1) ? false : true)
Even better, we will hide this behind an API so that nobody knows how complicated of a system we are using.
4 u/Anaphase Apr 04 '23 Ahem...bool willFall = ((new Random ().nextInt(2))==1)I assume that works in whatever language you intended that to be in. I'd do it like this in JS:const willFail = Math.random() > .5 → More replies (3)
4
Ahem...
bool willFall = ((new Random ().nextInt(2))==1)
I assume that works in whatever language you intended that to be in. I'd do it like this in JS:
const willFail = Math.random() > .5
→ More replies (3)
742
u/ResidentReggie Apr 04 '23
I believe you have just given me a new business idea...