The easiest way was to put a placeholder in the layout where the background color is defined, something like this CSS code in the <style>
section:
body {
background-color: white;
background-color: %experiment%;
}
And then to define the placeholder based on a random generator on the first page:
show('RG01')
if (value('RG01') == 1) {
replace('%experiment%', '#FF9900');
} else {
replace('%experiment%', '#0099FF');
}
Keep in mind, that the very last page, will not use this color.