From c054b556a021a8320901bb91c5f7af8b8d60a8a8 Mon Sep 17 00:00:00 2001 From: Michael Brandt Date: Sat, 27 Jan 2024 21:41:49 -0700 Subject: [PATCH] [18SJ] fix setup randommization: shuffle each collection Fixes #10202 --- lib/engine/game/g_18_sj/game.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/engine/game/g_18_sj/game.rb b/lib/engine/game/g_18_sj/game.rb index be359a8340..b54642e7c1 100644 --- a/lib/engine/game/g_18_sj/game.rb +++ b/lib/engine/game/g_18_sj/game.rb @@ -351,7 +351,7 @@ def init_starting_cash(players, bank) end def select(collection) - collection[rand % collection.size] + collection.min_by { rand } end def find_company(companies, collection)