You get ideas from daydreaming. You get ideas from being bored. You get ideas all the time. The only difference between writers and other people is we notice when we're doing it.
Success is not something you pursue. What you pursue will elude you; it can be like trying to chase butterflies. Success is something you attract by the person you become.