Less backgrounds in the randomfunc

This commit is contained in:
Kasper Rynning-Tønnesen
2015-02-13 10:48:08 +01:00
parent 38fd17a4f1
commit fd31cf105d

View File

@@ -5,7 +5,7 @@
-->
<?php
$bg = array('bg1.jpg', 'bg2.jpg', 'bg3.jpg', 'bg4.jpg', 'bg5.jpg' ); // array of filenames
$bg = array('bg3.jpg', 'bg4.jpg'); // array of filenames
$i = rand(0, count($bg)-1); // generate random number size of the array
$selectedBg = "$bg[$i]"; // set variable equal to which random filename was chosen