質問編集履歴

2

修正

2017/08/01 06:24

投稿

dndn
dndn

スコア6

test CHANGED
@@ -1 +1 @@
1
- RubyでDBに1~ 4の数字を繰り返し振りたい
1
+ Rubyで1~ 3の数字を繰り返し振りたい
test CHANGED
File without changes

1

編集

2017/08/01 06:24

投稿

dndn
dndn

スコア6

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