Skip to content

修改自述文件,上传自己随机数的例子 #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
23 changes: 18 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
# 一些autojs的脚本
# autojs作者已经决定不再维护autojs, 2019.9.3日最后一次收集整理qq群脚本, 感谢各位qq群员的分享, 此仓库不再更新.
# autojs作者新的安卓端软件, pluto.js V8, 不包含无障碍, 使用 V8 引擎, 支持nodejs, 目标是玩具,工具,应用开发.
# pluto交流q群 662377009
# autojs脚本收集整理
Auto.js交流 Q群:662377009
感谢各位QQ群员的分享。
2019.9.3日,仓库创建者上次收集整理的时间,

我是新人逸痕,非仓库创建者,有时间再更新仓库,会独立一个文件夹更新。
“逸痕微信公众号球球帮忙点点广告”文件夹
新手上路,顺便卖个萌,恰个饭!

以下声明,仅限于小哥哥的文件夹!
1.分享者不作为原作者署名!
2.原作者分享脚本,里没有声明,就是默认匿名无限制分享。
3.保护隐私,避免骚扰分享者,或者匿名作者。
4.互联网昵称随便改,比较混乱,无法确认作者。
其他文件夹外,很难寻找前辈们(管理)一一求证!

以下是仓库创建者发的图片
<div align=center>
<img width="300" height="300" src="https://raw.githubusercontent.com/snailuncle/autojsDemo/master/111111111%E6%9F%B4%E6%88%BF/yeah.png"/>
<img width="300" height="300" src="https://raw.githubusercontent.com/snailuncle/autojsDemo/master/111111111%E6%9F%B4%E6%88%BF/%E5%BE%AE%E4%BF%A1%E8%B5%9E%E8%B5%8F%E7%A0%81.png"/>
<img width="300" height="467" src="https://raw.githubusercontent.com/snailuncle/autojsDemo/master/111111111%E6%9F%B4%E6%88%BF/%E6%94%AF%E4%BB%98%E5%AE%9D%E6%94%B6%E6%AC%BE%E7%A0%81.jpg"/>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*/
作者:微信公众号逸痕
编辑日期:2021年3月27日
宣言:“求求帮我逸痕,点点公众号文章中的广告!”
注释:写在微信公众号文章!
声明:
任何人,修改代码后,只可以添加修改者。
打包入其他项目,必须在关于里面再一次明显署名作者!
以及宣言:“求求帮我逸痕,点点公众号文章中的广告!”
修改者:无
编辑日期:无
……
/*/
/*/
问题来源Q群
a>b>c>d>e>f
a为1000,f为1,bcde四个为随机数
邻数相差5以上,这个算法怎么写
/*/
toastLog(Random(1,1000,5,6));

function Random(Min,Max,Span,Quantity) {
Span++,quantity--;
if(Max-Min-Span*Quantity-1<0) {
throw new Error("\nSorry!\nMax+Min<(Span+1)*quantity-1");
};
var v=[Min];
var RANDOM=Min;
for (i=0;i<Quantity;i++){
var MEAN=(Max-RANDOM-Span*(Quantity-i))/(Quantity-i-1);
RANDOM+=Math.floor(Math.random()*MEAN);
RANDOM+=RANDOM-v[i]>Span-1?0:Span-1;
v[i+1]=RANDOM;
};
v[Quantity]=Max;
return v;
};