note 110807 added to function.highlight-file

From: Date: Tue, 11 Dec 2012 01:00:14 +0000
Subject: note 110807 added to function.highlight-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-192448@lists.php.net to get a copy of this message
<?php public function mt_rand_64($min, $max) { //Get the random seed $rand = mt_rand(); //Get the random exponent $rand_exponent1 = mt_rand(900,1100); $rand2_exponent1 = $rand_exponent - 50; $rand2_exponent2 = $rand_exponent + 50; $rand_exponent2 = mt_rand($rand2_exponent1, $rand2_exponent2); $rand_exponent = $rand_exponent1 / $rand_exponent2; //Get the exponential of random $rand = $rand ^ $rand_exponent; $rand = abs($rand); //Get the differential $difference = $max - $min; //Get the actual random number $random_number = $rand % $difference; $random_number += $min; RETURN $random_number; } ?> ---- Server IP: 69.147.83.199 Probable Submitter: 72.52.91.2 (proxied: 68.192.201.174) ---- Manual Page -- http://php.net/manual/en/function.highlight-file.php Edit -- https://master.php.net/note/edit/110807 Del: integrated -- https://master.php.net/note/delete/110807/integrated Del: useless -- https://master.php.net/note/delete/110807/useless Del: bad code -- https://master.php.net/note/delete/110807/bad+code Del: spam -- https://master.php.net/note/delete/110807/spam Del: non-english -- https://master.php.net/note/delete/110807/non-english Del: in docs -- https://master.php.net/note/delete/110807/in+docs Del: other reasons-- https://master.php.net/note/delete/110807 Reject -- https://master.php.net/note/reject/110807 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#192448) next »