Toyota anyone?

i have a 99 toyota corolla, and sometimes when i put my key in the ignition it won’t start. it doesn’t lock up, but i have to turn my steering wheel all the way to the left, or all the way to the right and then try again. this works, but it’s so random and i’m wondering why? any info would be greatly appreciated.

when i put my key in the ignition it won’t start. it doesn’t lock up

Could you be a little more specific and descriptive? Let’s start with the key in the ignition and you try to turn it: what exactly happens, what moves or makes noise of any kind?

How long has it been doing it? How often: every time every 100 times ??

What exactly happens when you turn the steering wheel?

if it doesnt turn before you do the steering wheel thing, then every car does that