What Happens in Vegas (2008)

...

After their life’s craziest party night awakens two mismatched strangers, Jack (Ashton Kutcher) and Joy (Cameron Diaz), up in Las Vegas ogh discovers that they are married! But the road to annul the wedding, an unexpected turn when Jack wins three million dollars on the jackpot after using Joy’s coins .