Почему рандом не выводится?
if ( c("combobox1")->items->selected == "ПИН" )
{
$random = rand(1,4);
$word[1] = c("edit1")->selText = 'YZE39DE0TMYQVIH205';
$word[2] = c("edit1")->selText = '8YC59FU1ARUZ9N0F3FBU';
$word[3] = c("edit1")->selText = '8KC8QL7IX5CQOT81KKOO';
$word[4] = c("edit1")->selText = '2WS1AH8Z8MWGPPGKI71B2X';
echo $word[$random];
}
if ( c("combobox1")->items->selected == "ПИН" )
{
$random = rand(1,4);
$word[1] = c("edit1")->selText = 'YZE39DE0TMYQVIH205';
$word[2] = c("edit1")->selText = '8YC59FU1ARUZ9N0F3FBU';
$word[3] = c("edit1")->selText = '8KC8QL7IX5CQOT81KKOO';
$word[4] = c("edit1")->selText = '2WS1AH8Z8MWGPPGKI71B2X';
echo $word[$random];
}