PHP :
$Array = array("Dolu","Boş");
$randKey = array_rand($Array, 1);
echo $Array[$randKey];
?>


Javascript

<script>
var Array=['Dolu','Boş'];
var randKey = Math.floor(Math.random() * Array.length);
alert(Array[randKey]);
</script>