12321官方游戏论坛

 找回密码
 立即注册
查看: 3379|回复: 24

随机抽取怎么弄 ???

[复制链接]

19

主题

551

帖子

1298

积分

金牌会员

Rank: 6Rank: 6

积分
1298
QQ
发表于 2019-4-5 21:52:57 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区!

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
随机抽取怎么弄啊???
大神求解》《
逝去的樱花中是我们的残恋还是我的残念……
回复

使用道具 举报

61

主题

2万

帖子

3万

积分

管理员

野心家

Rank: 9Rank: 9Rank: 9

积分
38160
QQ
发表于 2019-4-5 21:58:37 | 显示全部楼层
我最近做了一个完善的版本……你要参考下吗
既然无法一起出生,  那就一起祸害苍生。
回复

使用道具 举报

19

主题

551

帖子

1298

积分

金牌会员

Rank: 6Rank: 6

积分
1298
QQ
 楼主| 发表于 2019-4-5 22:05:09 | 显示全部楼层
diazynez 发表于 2019-4-5 21:58
我最近做了一个完善的版本……你要参考下吗

好的。。谢谢大佬
逝去的樱花中是我们的残恋还是我的残念……
回复

使用道具 举报

61

主题

2万

帖子

3万

积分

管理员

野心家

Rank: 9Rank: 9Rank: 9

积分
38160
QQ
发表于 2019-4-5 22:07:53 | 显示全部楼层

echo Choose the Order Number!
echo 1.3V3
echo 2.1V1
echo.
echo ============================================================
choice /c:12 /m:"Input:"
cls
if %errorlevel% == 1 goto menu21
if %errorlevel% == 2 goto menu22

:menu21
set /a ranNum1=%random%%%(53)+1
if %ranNum1%==1 set fighter1=零段
if %ranNum1%==2 set fighter1=始护
if %ranNum1%==3 set fighter1=卍护
if %ranNum1%==4 set fighter1=虚护
if %ranNum1%==5 set fighter1=卍虚
if %ranNum1%==6 set fighter1=义露
if %ranNum1%==7 set fighter1=始露
if %ranNum1%==8 set fighter1=雨龙
if %ranNum1%==9 set fighter1=茶渡
if %ranNum1%==10 set fighter1=银
if %ranNum1%==11 set fighter1=恋次
if %ranNum1%==12 set fighter1=大白
if %ranNum1%==13 set fighter1=帝白
if %ranNum1%==14 set fighter1=小白
if %ranNum1%==15 set fighter1=卍白
if %ranNum1%==16 set fighter1=一角
if %ranNum1%==17 set fighter1=剑八
if %ranNum1%==18 set fighter1=涅茧利
if %ranNum1%==19 set fighter1=小乌
if %ranNum1%==20 set fighter1=大乌
if %ranNum1%==21 set fighter1=蓝染
if %ranNum1%==22 set fighter1=渣鸣
if %ranNum1%==23 set fighter1=一尾
if %ranNum1%==24 set fighter1=四尾
if %ranNum1%==25 set fighter1=仙鸣
if %ranNum1%==26 set fighter1=金鸣
if %ranNum1%==27 set fighter1=小樱
if %ranNum1%==28 set fighter1=宁次
if %ranNum1%==29 set fighter1=渣佐
if %ranNum1%==30 set fighter1=咒佐
if %ranNum1%==31 set fighter1=须佐
if %ranNum1%==32 set fighter1=卡卡西
if %ranNum1%==33 set fighter1=我爱罗
if %ranNum1%==34 set fighter1=手鞠
if %ranNum1%==35 set fighter1=小李
if %ranNum1%==36 set fighter1=自来也
if %ranNum1%==37 set fighter1=奇拉比
if %ranNum1%==38 set fighter1=蛇叔
if %ranNum1%==39 set fighter1=香燐
if %ranNum1%==40 set fighter1=重吾
if %ranNum1%==41 set fighter1=鼬
if %ranNum1%==42 set fighter1=小南
if %ranNum1%==43 set fighter1=佩恩
if %ranNum1%==44 set fighter1=带一
if %ranNum1%==45 set fighter1=带二
if %ranNum1%==46 set fighter1=小迪
if %ranNum1%==47 set fighter1=剑心
if %ranNum1%==48 set fighter1=蓝剑
if %ranNum1%==49 set fighter1=织姬
if %ranNum1%==50 set fighter1=杜李
if %ranNum1%==51 set fighter1=始虚
if %ranNum1%==52 set fighter1=斑
if %ranNum1%==53 set fighter1=葛六
set /a ranNum2=%random%%%(53)+1
if %ranNum2%==1 set fighter2=零段
if %ranNum2%==2 set fighter2=始护
if %ranNum2%==3 set fighter2=卍护
if %ranNum2%==4 set fighter2=虚护
if %ranNum2%==5 set fighter2=卍虚
if %ranNum2%==6 set fighter2=义露
if %ranNum2%==7 set fighter2=始露
if %ranNum2%==8 set fighter2=雨龙
if %ranNum2%==9 set fighter2=茶渡
if %ranNum2%==10 set fighter2=银
if %ranNum2%==11 set fighter2=恋次
if %ranNum2%==12 set fighter2=大白
if %ranNum2%==13 set fighter2=帝白
if %ranNum2%==14 set fighter2=小白
if %ranNum2%==15 set fighter2=卍白
if %ranNum2%==16 set fighter2=一角
if %ranNum2%==17 set fighter2=剑八
if %ranNum2%==18 set fighter2=涅茧利
if %ranNum2%==19 set fighter2=小乌
if %ranNum2%==20 set fighter2=大乌
if %ranNum2%==21 set fighter2=蓝染
if %ranNum2%==22 set fighter2=渣鸣
if %ranNum2%==23 set fighter2=一尾
if %ranNum2%==24 set fighter2=四尾
if %ranNum2%==25 set fighter2=仙鸣
if %ranNum2%==26 set fighter2=金鸣
if %ranNum2%==27 set fighter2=小樱
if %ranNum2%==28 set fighter2=宁次
if %ranNum2%==29 set fighter2=渣佐
if %ranNum2%==30 set fighter2=咒佐
if %ranNum2%==31 set fighter2=须佐
if %ranNum2%==32 set fighter2=卡卡西
if %ranNum2%==33 set fighter2=我爱罗
if %ranNum2%==34 set fighter2=手鞠
if %ranNum2%==35 set fighter2=小李
if %ranNum2%==36 set fighter2=自来也
if %ranNum2%==37 set fighter2=奇拉比
if %ranNum2%==38 set fighter2=蛇叔
if %ranNum2%==39 set fighter2=香燐
if %ranNum2%==40 set fighter2=重吾
if %ranNum2%==41 set fighter2=鼬
if %ranNum2%==42 set fighter2=小南
if %ranNum2%==43 set fighter2=佩恩
if %ranNum2%==44 set fighter2=带一
if %ranNum2%==45 set fighter2=带二
if %ranNum2%==46 set fighter2=小迪
if %ranNum2%==47 set fighter2=剑心
if %ranNum2%==48 set fighter2=蓝剑
if %ranNum2%==49 set fighter2=织姬
if %ranNum2%==50 set fighter2=杜李
if %ranNum2%==51 set fighter2=始虚
if %ranNum2%==52 set fighter2=斑
if %ranNum2%==53 set fighter2=葛六
set /a ranNum3=%random%%%(33)+1
if %ranNum3%==1 set assist1=魂
if %ranNum3%==2 set assist1=织姬
if %ranNum3%==3 set assist1=雨%
既然无法一起出生,  那就一起祸害苍生。
回复

使用道具 举报

61

主题

2万

帖子

3万

积分

管理员

野心家

Rank: 9Rank: 9Rank: 9

积分
38160
QQ
发表于 2019-4-5 22:10:53 | 显示全部楼层

echo Choose the Order Number!
echo 1.3V3
echo 2.1V1
echo.
echo ============================================================
choice /c:12 /m:"Input:"
cls
if %errorlevel% == 1 goto menu21
if %errorlevel% == 2 goto menu22

:menu21
set /a ranNum1=%random%%%(53)+1
if %ranNum1%==1 set fighter1=零段
if %ranNum1%==2 set fighter1=始护
if %ranNum1%==3 set fighter1=卍护
if %ranNum1%==4 set fighter1=虚护
if %ranNum1%==5 set fighter1=卍虚
if %ranNum1%==6 set fighter1=义露
if %ranNum1%==7 set fighter1=始露
if %ranNum1%==8 set fighter1=雨龙
if %ranNum1%==9 set fighter1=茶渡
if %ranNum1%==10 set fighter1=银
if %ranNum1%==11 set fighter1=恋次
if %ranNum1%==12 set fighter1=大白
if %ranNum1%==13 set fighter1=帝白
if %ranNum1%==14 set fighter1=小白
if %ranNum1%==15 set fighter1=卍白
if %ranNum1%==16 set fighter1=一角
if %ranNum1%==17 set fighter1=剑八
if %ranNum1%==18 set fighter1=涅茧利
if %ranNum1%==19 set fighter1=小乌
if %ranNum1%==20 set fighter1=大乌
if %ranNum1%==21 set fighter1=蓝染
if %ranNum1%==22 set fighter1=渣鸣
if %ranNum1%==23 set fighter1=一尾
if %ranNum1%==24 set fighter1=四尾
if %ranNum1%==25 set fighter1=仙鸣
if %ranNum1%==26 set fighter1=金鸣
if %ranNum1%==27 set fighter1=小樱
if %ranNum1%==28 set fighter1=宁次
if %ranNum1%==29 set fighter1=渣佐
if %ranNum1%==30 set fighter1=咒佐
if %ranNum1%==31 set fighter1=须佐
if %ranNum1%==32 set fighter1=卡卡西
if %ranNum1%==33 set fighter1=我爱罗
if %ranNum1%==34 set fighter1=手鞠
if %ranNum1%==35 set fighter1=小李
if %ranNum1%==36 set fighter1=自来也
if %ranNum1%==37 set fighter1=奇拉比
if %ranNum1%==38 set fighter1=蛇叔
if %ranNum1%==39 set fighter1=香燐
if %ranNum1%==40 set fighter1=重吾
if %ranNum1%==41 set fighter1=鼬
if %ranNum1%==42 set fighter1=小南
if %ranNum1%==43 set fighter1=佩恩
if %ranNum1%==44 set fighter1=带一
if %ranNum1%==45 set fighter1=带二
if %ranNum1%==46 set fighter1=小迪
if %ranNum1%==47 set fighter1=剑心
if %ranNum1%==48 set fighter1=蓝剑
if %ranNum1%==49 set fighter1=织姬
if %ranNum1%==50 set fighter1=杜李
if %ranNum1%==51 set fighter1=始虚
if %ranNum1%==52 set fighter1=斑
if %ranNum1%==53 set fighter1=葛六
set /a ranNum2=%random%%%(53)+1
if %ranNum2%==1 set fighter2=零段
if %ranNum2%==2 set fighter2=始护
if %ranNum2%==3 set fighter2=卍护
if %ranNum2%==4 set fighter2=虚护
if %ranNum2%==5 set fighter2=卍虚
if %ranNum2%==6 set fighter2=义露
if %ranNum2%==7 set fighter2=始露
if %ranNum2%==8 set fighter2=雨龙
if %ranNum2%==9 set fighter2=茶渡
if %ranNum2%==10 set fighter2=银
if %ranNum2%==11 set fighter2=恋次
if %ranNum2%==12 set fighter2=大白
if %ranNum2%==13 set fighter2=帝白
if %ranNum2%==14 set fighter2=小白
if %ranNum2%==15 set fighter2=卍白
if %ranNum2%==16 set fighter2=一角
if %ranNum2%==17 set fighter2=剑八
if %ranNum2%==18 set fighter2=涅茧利
if %ranNum2%==19 set fighter2=小乌
if %ranNum2%==20 set fighter2=大乌
if %ranNum2%==21 set fighter2=蓝染
if %ranNum2%==22 set fighter2=渣鸣
if %ranNum2%==23 set fighter2=一尾
if %ranNum2%==24 set fighter2=四尾
if %ranNum2%==25 set fighter2=仙鸣
if %ranNum2%==26 set fighter2=金鸣
if %ranNum2%==27 set fighter2=小樱
if %ranNum2%==28 set fighter2=宁次
if %ranNum2%==29 set fighter2=渣佐
if %ranNum2%==30 set fighter2=咒佐
if %ranNum2%==31 set fighter2=须佐
if %ranNum2%==32 set fighter2=卡卡西
if %ranNum2%==33 set fighter2=我爱罗
if %ranNum2%==34 set fighter2=手鞠
if %ranNum2%==35 set fighter2=小李
if %ranNum2%==36 set fighter2=自来也
if %ranNum2%==37 set fighter2=奇拉比
if %ranNum2%==38 set fighter2=蛇叔
if %ranNum2%==39 set fighter2=香燐
if %ranNum2%==40 set fighter2=重吾
if %ranNum2%==41 set fighter2=鼬
if %ranNum2%==42 set fighter2=小南
if %ranNum2%==43 set fighter2=佩恩
if %ranNum2%==44 set fighter2=带一
if %ranNum2%==45 set fighter2=带二
if %ranNum2%==46 set fighter2=小迪
if %ranNum2%==47 set fighter2=剑心
if %ranNum2%==48 set fighter2=蓝剑
if %ranNum2%==49 set fighter2=织姬
if %ranNum2%==50 set fighter2=杜李
if %ranNum2%==51 set fighter2=始虚
if %ranNum2%==52 set fighter2=斑
if %ranNum2%==53 set fighter2=葛六
set /a ranNum3=%random%%%(33)+1
if %ranNum3%==1 set assist1=魂
if %ranNum3%==2 set assist1=织姬
if %ranNum3%==3 set assist1=雨%
既然无法一起出生,  那就一起祸害苍生。
回复

使用道具 举报

61

主题

2万

帖子

3万

积分

管理员

野心家

Rank: 9Rank: 9Rank: 9

积分
38160
QQ
发表于 2019-4-5 22:12:15 | 显示全部楼层

[code]echo Choose the Order Number!
echo 1.3V3
echo 2.1V1
echo.
echo ============================================================
choice /c:12 /m:"Input:"
cls
if %errorlevel% == 1 goto menu21
if %errorlevel% == 2 goto menu22

:menu21
set /a ranNum1=%random%%%(53)+1
if %ranNum1%==1 set fighter1=零段
if %ranNum1%==2 set fighter1=始护
if %ranNum1%==3 set fighter1=卍护
if %ranNum1%==4 set fighter1=虚护
if %ranNum1%==5 set fighter1=卍虚
if %ranNum1%==6 set fighter1=义露
if %ranNum1%==7 set fighter1=始露
if %ranNum1%==8 set fighter1=雨龙
if %ranNum1%==9 set fighter1=茶渡
if %ranNum1%==10 set fighter1=银
if %ranNum1%==11 set fighter1=恋次
if %ranNum1%==12 set fighter1=大白
if %ranNum1%==13 set fighter1=帝白
if %ranNum1%==14 set fighter1=小白
if %ranNum1%==15 set fighter1=卍白
if %ranNum1%==16 set fighter1=一角
if %ranNum1%==17 set fighter1=剑八
if %ranNum1%==18 set fighter1=涅茧利
if %ranNum1%==19 set fighter1=小乌
if %ranNum1%==20 set fighter1=大乌
if %ranNum1%==21 set fighter1=蓝染
if %ranNum1%==22 set fighter1=渣鸣
if %ranNum1%==23 set fighter1=一尾
if %ranNum1%==24 set fighter1=四尾
if %ranNum1%==25 set fighter1=仙鸣
if %ranNum1%==26 set fighter1=金鸣
if %ranNum1%==27 set fighter1=小樱
if %ranNum1%==28 set fighter1=宁次
if %ranNum1%==29 set fighter1=渣佐
if %ranNum1%==30 set fighter1=咒佐
if %ranNum1%==31 set fighter1=须佐
if %ranNum1%==32 set fighter1=卡卡西
if %ranNum1%==33 set fighter1=我爱罗
if %ranNum1%==34 set fighter1=手鞠
if %ranNum1%==35 set fighter1=小李
if %ranNum1%==36 set fighter1=自来也
if %ranNum1%==37 set fighter1=奇拉比
if %ranNum1%==38 set fighter1=蛇叔
if %ranNum1%==39 set fighter1=香燐
if %ranNum1%==40 set fighter1=重吾
if %ranNum1%==41 set fighter1=鼬
if %ranNum1%==42 set fighter1=小南
if %ranNum1%==43 set fighter1=佩恩
if %ranNum1%==44 set fighter1=带一
if %ranNum1%==45 set fighter1=带二
if %ranNum1%==46 set fighter1=小迪
if %ranNum1%==47 set fighter1=剑心
if %ranNum1%==48 set fighter1=蓝剑
if %ranNum1%==49 set fighter1=织姬
if %ranNum1%==50 set fighter1=杜李
if %ranNum1%==51 set fighter1=始虚
if %ranNum1%==52 set fighter1=斑
if %ranNum1%==53 set fighter1=葛六
set /a ranNum2=%random%%%(53)+1
if %ranNum2%==1 set fighter2=零段
if %ranNum2%==2 set fighter2=始护
if %ranNum2%==3 set fighter2=卍护
if %ranNum2%==4 set fighter2=虚护
if %ranNum2%==5 set fighter2=卍虚
if %ranNum2%==6 set fighter2=义露
if %ranNum2%==7 set fighter2=始露
if %ranNum2%==8 set fighter2=雨龙
if %ranNum2%==9 set fighter2=茶渡
if %ranNum2%==10 set fighter2=银
if %ranNum2%==11 set fighter2=恋次
if %ranNum2%==12 set fighter2=大白
if %ranNum2%==13 set fighter2=帝白
if %ranNum2%==14 set fighter2=小白
if %ranNum2%==15 set fighter2=卍白
if %ranNum2%==16 set fighter2=一角
if %ranNum2%==17 set fighter2=剑八
if %ranNum2%==18 set fighter2=涅茧利
if %ranNum2%==19 set fighter2=小乌
if %ranNum2%==20 set fighter2=大乌
if %ranNum2%==21 set fighter2=蓝染
if %ranNum2%==22 set fighter2=渣鸣
if %ranNum2%==23 set fighter2=一尾
if %ranNum2%==24 set fighter2=四尾
if %ranNum2%==25 set fighter2=仙鸣
if %ranNum2%==26 set fighter2=金鸣
if %ranNum2%==27 set fighter2=小樱
if %ranNum2%==28 set fighter2=宁次
if %ranNum2%==29 set fighter2=渣佐
if %ranNum2%==30 set fighter2=咒佐
if %ranNum2%==31 set fighter2=须佐
if %ranNum2%==32 set fighter2=卡卡西
if %ranNum2%==33 set fighter2=我爱罗
if %ranNum2%==34 set fighter2=手鞠
if %ranNum2%==35 set fighter2=小李
if %ranNum2%==36 set fighter2=自来也
if %ranNum2%==37 set fighter2=奇拉比
if %ranNum2%==38 set fighter2=蛇叔
if %ranNum2%==39 set fighter2=香燐
if %ranNum2%==40 set fighter2=重吾
if %ranNum2%==41 set fighter2=鼬
if %ranNum2%==42 set fighter2=小南
if %ranNum2%==43 set fighter2=佩恩
if %ranNum2%==44 set fighter2=带一
if %ranNum2%==45 set fighter2=带二
if %ranNum2%==46 set fighter2=小迪
if %ranNum2%==47 set fighter2=剑心
if %ranNum2%==48 set fighter2=蓝剑
if %ranNum2%==49 set fighter2=织姬
if %ranNum2%==50 set fighter2=杜李
if %ranNum2%==51 set fighter2=始虚
if %ranNum2%==52 set fighter2=斑
if %ranNum2%==53 set fighter2=葛六
set /a ranNum3=%random%%%(33)+1
if %ranNum3%==1 set assist1=魂
if %ranNum3%==2 set assist1=织姬
if %ranNum3%==3 set assist1=%
回复

使用道具 举报

19

主题

551

帖子

1298

积分

金牌会员

Rank: 6Rank: 6

积分
1298
QQ
 楼主| 发表于 2019-4-5 22:14:00 | 显示全部楼层
diazynez 发表于 2019-4-5 22:12
[code]echo Choose the Order Number!
echo 1.3V3
echo 2.1V1

请问这些怎么设置
逝去的樱花中是我们的残恋还是我的残念……
回复

使用道具 举报

61

主题

2万

帖子

3万

积分

管理员

野心家

Rank: 9Rank: 9Rank: 9

积分
38160
QQ
发表于 2019-4-5 22:20:30 | 显示全部楼层

存进一个批处理文件,别的语言也都可以做,这个仅供参考
既然无法一起出生,  那就一起祸害苍生。
回复

使用道具 举报

19

主题

551

帖子

1298

积分

金牌会员

Rank: 6Rank: 6

积分
1298
QQ
 楼主| 发表于 2019-4-5 22:22:02 | 显示全部楼层
diazynez 发表于 2019-4-5 22:20
存进一个批处理文件,别的语言也都可以做,这个仅供参考

文件根目录在哪
逝去的樱花中是我们的残恋还是我的残念……
回复

使用道具 举报

61

主题

2万

帖子

3万

积分

管理员

野心家

Rank: 9Rank: 9Rank: 9

积分
38160
QQ
发表于 2019-4-5 22:24:01 | 显示全部楼层

创建一个txt就行啊
既然无法一起出生,  那就一起祸害苍生。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|12321官方游戏论坛  

GMT+8, 2024-11-1 10:31 , Processed in 0.022104 second(s), 25 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表