Skip to main content
Corrected the code.; edited body
Source Link

Translation to PHP, from the answer posted ny Dan McGrath.

rand7function Rand7(){$x=8;while($x>7)$x=rand5()+5*rand5()-5;return $x;}

5867 characters.

Translation to PHP, from the answer posted ny Dan McGrath.

rand7(){$x=8;while($x>7)$x=rand5()+5*rand5()-5;return $x;}

58 characters.

Translation to PHP, from the answer posted ny Dan McGrath.

function Rand7(){$x=8;while($x>7)$x=rand5()+5*rand5()-5;return $x;}

67 characters.

Source Link

Translation to PHP, from the answer posted ny Dan McGrath.

rand7(){$x=8;while($x>7)$x=rand5()+5*rand5()-5;return $x;}

58 characters.