25

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 😅

Comments
  • 13
    // TODO Update to grab actual CPU temp

    Never comes back
  • 9
    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.
  • 2
    @Fast-Nop but wasn't it working for years?
  • 4
    @hell it was, but they didn't like the way once they discovered it.
  • 3
    @Fast-Nop looks like they could not handle the truth 😂😂
  • 3
    Reminds 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
  • 1
    Bryan Lunduke is right, programmers are evil.

    https://youtube.com/watch/...
Add Comment