CS:GO cases have been introduced to the game for 11 years now and many new types of cases are released every year. Case openings are a huge aspect of the game and many millions of dollars are poured into them every month.
With the new France exclusive CSGO X-ray update, one could ask if the content inside of the case is predetermined before the case is opened, or if the reward is calculated only when you click open.
CSGO cases are not predetermined as the reward inside is calculated and given precisely at the moment the open button is clicked. Meaning if you had sent the case to your friend instead of opening it, your friend would’ve gotten a different skin. This also means that the case opening animation of skins passing by is irrelevant to the actual calculations and is purely for suspense purposes.
Valve has introduced X-rays to CSGO exclusively to France users in response to the action against video-game gambling policies. It is essentially a way to make opening them legal in France and works basically the same as a normal case opening except for the fact that you see the skin before opening it (you then have to pay for that case before you can scan another one).
To conclude, although CS:GO has introduced the X-ray mechanism to France, the calculations about the reward of a case is still fetched and calculated the moment the user clicks open case. This is probably done to simplify the logic and to avoid storing unecessary data.