This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// [0, n)の値をn個ランダムで生成した配列を返す | |
function makeRandomNumberArr(n) { | |
let arr = []; | |
let i = 0; | |
let num; | |
while(i < n) { | |
num = Math.floor(Math.random() * n); | |
if(~arr.indexOf(num)) continue; | |
arr.push(num); | |
i++; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ | |
0123456789ABC | |
DEFGHIJKLMNOPQRS | |
TUVWXYZabcdefghi | |
jklmnopqrstuvwxy | |
zぁあぃいぅうぇえぉおかがきぎく | |
ぐけげこごさざしじすずせぜそぞた | |
だちぢっつづてでとどなにぬねのは | |
ばぱひびぴふぶぷへべぺほぼぽまみ | |
むめもゃやゅゆょよらりるれろゎわ |
NewerOlder