I have 3 signs in my world and an array with to strings (test and test2). How can I randomly set the strings on the signs? Only one string with one sign. So one sign keeps empty
the following code will assign one of the two random strings to a one of the three random signs. PHP: $string = $stringArr[mt_rand(0,1)];$signTile = $tileArr[mt_rand(0,2)];$signTile->setText($string);
Look at what @jasonwynn10 posted carefully. You're making it sound like you know what you're doing, so why ask for help?