質問編集履歴
2
修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Rubyで
|
1
|
+
Rubyで1~ 3の数字を繰り返し振りたい
|
test
CHANGED
File without changes
|
1
編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
b = a/2 #=>4
|
12
12
|
|
13
|
-
c = User.all.select('id')
|
13
|
+
c = User.all.select('id').shuffle
|
14
14
|
|
15
15
|
c.each do |e,i|
|
16
16
|
|