我想使用PHP生成一个包含75个字符的数字.
我到处搜索,什么都没有,除此之外:http://dailycoding.com/tools/RandomNumber.aspx
我不认为从该页面抓取它是有效的.
我试过的是这个:
rand(1,9999999999999999999999999999999999999);
Run Code Online (Sandbox Code Playgroud)
试试这个
function bigNumber() {
# prevent the first number from being 0
$output = rand(1,9);
for($i=0; $i<74; $i++) {
$output .= rand(0,9);
}
return $output;
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
4313 次 |
最近记录: |