﻿function SetRandomBackground() {
    // This array contains the possible background-colors.
    // [PP]
    var backgroundColors =
        [
        'FFFFFF',
        '99CC33',
        '00CCFF'
        ];

    // Generate a random number.
    // [PP]
    var rnd = Math.floor(Math.random() * backgroundColors.length);

    $(document).ready(function() {
        // Set the background-color using jQuery.
        // [PP]
        $("body").css("background-color", "#" + backgroundColors[rnd]);
    });
}
