PHP probability operation function

time:10-10-17 forum:PHP tools and code
  Http://www.im286.com/thread-6310197-1-1.html

[code]/**
* total probability calculation of
*
* @param array $p array ('a'=.gt; 0.5,'b'=.gt; 0.2,'c'=.gt; 0.4) returned to the above array. Static $arr = array (); $key = MD5 (serialize ($ps));
if ($arr.#91; $key.#93;). }
>}
return $arr.#91; $key.#93;.#91; mt_rand (0, count ($arr.#91; $key.#93;) -1);

prev:PHP video tutorials LAMP brothers, origi... next:China International Truck Exhibition ope...
post comment
Notice



approved   Ji'nan Ying Bi Street School: specia...   Reminder: at present, there are only...   Online test site PING value, network...   Expired domain name query   Query the operation system informati...
rand   PHP gets the intersection and differ...   PHP determines to compare the data i...   PHP array usage   PHP force download file (click TXT f...   A brief introduction to the usage of...
ads

other

Because all the contents of this site are reproduced from other media, the intention is to provide free services to the public, but it does not mean that this site agrees with its views, and can not be responsible for the authenticity of its verification, such as the copyright unit or individual of the manuscript does not want to publish on this site, please Contact me, I will immediately remove it, thank you. Contact: atseashawk@163.com