You have no chance of succeeding in that endeavor.
Few individuals can say that they did not participate in at least one ridiculous bet with a buddy during their time spent in middle school. It is a lot of fun to make light of a situation when you are among excellent friends, particularly if you are aware that you have very little chance of winning the wager that you are participating in. The first person to tell this story wagered ten dollars with a friend that the two of them could successfully break into any school locker. Even though it was patently evident that there was no possibility that this could occur, the friend nonetheless agreed to the wager.
Yet, out of the blue, the OP got the strong sense that they already knew the locker code that their friend had picked! According to the story’s narrator, the locker opened without warning, which took both of them by surprise. It’s difficult to accept the idea that it was just a random occurrence.