What is the best way to use variable for Screen Resolution?

randomly select one of these:

320x568
375x667
414x736
768x1024
1024x1366


Can you please explain how to set a Double Value Type variable?