求助。。关于随机和数组
aide吧
全部回复
仅看楼主
level 2
ggncb🐷
楼主
在某个范围内取随机数要怎么写?我看sketchware里的代码是getRandow但是aide里不能直接用好像。
还有就是如何在数组中间插入一个元素
2017年09月01日 15点09分
1
level 10
🔥冷雨夜
2017年09月01日 17点09分
2
ggncb🐷
谢谢
2017年09月01日 22点09分
level 9
小藐糖子🍭
public static int random(int min,int max){
return (int)(Math.round(Math.random()*(max-min))+min);
}
2017年09月03日 07点09分
4
1