Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
I remember some years back in a big company, someone from controlling was fired. He had made project planning for years.
The thing was that he had done it in Excel, using the random function for a lot of items, and just added that up in a way that looked plausible.
One day, he erroneously sent out his "source" Excel file. Someone happened to take a closer look at it and discovered all these RAND calls. -
0and12836yReminds me of a personal experience. We had University coding exams on platforms like Hackerearth.
One of the questions was seemingly impossible for me. But I did have some idea - its output was to be a number from a predictable set, based on what inputs were given. So, I just outputed the results randomly until one try gave max test cases passed and submitted.
Human: 1, Judge Bot: 0
Related Rants
This happened yesterday. It was a Friday and I didn't have much time to implement something that I was asked.
I was supposed to get the cpu temperature from a host device and send it to the server. Instead I just used random.randint(x,y) (python random function) with x,y linearly dependent on cpu utilisation (cpu utilisation is easy to get).
The ability to generate random numbers on fly has to be on of the coolest things that you can do. You can almost fake anything using them properly 😅
rant
python
programming
random