DEV Community

Discussion on: How do you do random?

Collapse
 
tetri profile image
Tetri Mesquita

const random = 7;

Collapse
 
qm3ster profile image
Mihail Malo

Pfff, everyone knows random is 4 not 7.

Collapse
 
tetri profile image
Tetri Mesquita

Pfff, you need update your mindset 🤨

Thread Thread
 
qm3ster profile image
Mihail Malo • Edited

Updates just break everything.
How can you know that no consumer of your code assumes it will be 4?
Sure, you claimed it is random, in the "documentation", but it's not like that ever works.

There are probably children out there holding down spacebar to stay warm in the winter! YOUR UPDATE MURDERS CHILDREN.

Collapse
 
jsn1nj4 profile image
Elliot Derhay

🤣

Collapse
 
yaser profile image
Yaser Al-Najjar

You made my day 🤣🤣

Collapse
 
sleepyfran profile image
Fran González