皮皮学,免费搜题
登录
搜题
【简答题】
为了增加代码的通用性,购物网定义了一个公共类CommonClass,以下是该类的一个方法,请回答该方法实现了什么功能? public string RandomNum(int n) // { //定义一个包括数字、大写英文字母和小写英文字母的字符串 string strchar = "0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z"; string[] VcArray = strchar.Split(','); string VNum = ""; int temp = -1; Random rand = new Random(); for (int i = 1; i < n + 1; i++) { if (temp != -1) { rand = new Random(i * temp * unchecked((int)DateTime.Now.Ticks)); } int t = rand.Next(61); if (temp != -1 && temp == t) { return RandomNum(n); } temp = t; VNum += VcArray[t]; } return VNum; } }
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【单选题】We all know that humans are damaging the environment,but what can we do about it?Some people are trying to do their bit to be more environmentally friendly. Local councils in Britain encourage certain...
A.
save energy consumed in daily life
B.
reduce the amount of rubbish dumped
C.
create a new way of green living
D.
decrease the amount of carbon produced
【单选题】--- ___________? ---Good idea.
A.
Do you like to eat some beef
B.
Why not have some rice
C.
What do you want to have
D.
May I take your order
【判断题】“至于为《春秋》,笔则笔,削则削,子夏之徒不能赞一辞。弟子受《春秋》,孔子曰:“后世知丘者以《春秋》,而罪丘者亦以《春秋》。”这段话出自《史记》。
A.
正确
B.
错误
【简答题】工艺过程划分为不同层次的单元,它们依次是()、()、()、()和()。
【简答题】阅读理解。 BUS TIME TABLE Bus 1 Bus 2 Bus 3 Bus 4 Bus 5 Supermarket Internet bars Library Clothes factory Computer city Middle school Children's park Hotel 5:50 6:08 6:25 6:40 7:00 7:15 7:30 7:45 6:05 6:23...
【判断题】货物目录是指国家或部门根据货物分类的要求,对所经营管理的货物编制的总明细目录,是在对货物逐级分类的基础上,用表格、符号和文字全面记录并反映货物分类体系的书本式工具。
A.
正确
B.
错误
【单选题】Since you are free now, why not _____? [     ]
A.
doing some washing
B.
 to do washing
C.
to do some washing
D.
do some washing
【单选题】Mr White goes to work _____ every day. [     ]
A.
on bus
B.
by a bus
C.
take the bus
D.
by bus
【简答题】三种手法:______(记叙、铺陈); ______(打比方);______ (营造氛围,引发联想)
【判断题】只要善于利用逆境,勇于正视和战胜逆境,远大的理想就一定能实现
A.
正确
B.
错误
相关题目: