I believe God chose a people to Himself in Christ before the foundation of the world. It's not a lottery. God never chooses out of a group of people. That would be selection. Instead, God elects. He chooses a people, and then creates them. Just like He did when He created Israel out of Abraham's progeny. He promised Abraham that He would make a great nation from him, and then He did it.
2 Timothy 1 verse 9~ He has saved us and called us to a holy calling, not because of our works, but by His own purpose and by the grace He granted us in Christ Jesus before time began. Ephesians 1 verses 4-5~ He chose us in Him before the foundation of the world to be holy and blameless in His presence. In love He predestined us for adoption as His sons through Jesus Christ, according to the good pleasure of His will. Ephesians 1 verse 11~ In Him we were also chosen as God’s own, having been predestined according to the plan of Him who works out everything by the counsel of His will.