供餐時間
PHP: array_rand - Manual - PHP: Hypertext Preprocessor(不知不覺,供餐時間又到了,空姐MM開始送食品……) 空姐:"先生,我們有雞肉米飯和魚肉米飯,請問您吃哪種?" 旅客:"排骨!" 空姐:"先生,我們有雞肉米飯、魚肉米飯,請問您選哪種?" 旅I agree with Sebmil (http://php.net/manual/en/function.array-rand.php#105265) that "array_rand()" produces weird and very uneven random distribution (as of my local PHP 5.3.8 and my public host's PHP 5.2.17). Unfortunately, I haven't got any access either...
全文閱讀