aboutsummaryrefslogtreecommitdiff
path: root/02-hub3.rb
diff options
context:
space:
mode:
Diffstat (limited to '02-hub3.rb')
-rw-r--r--02-hub3.rb10
1 files changed, 3 insertions, 7 deletions
diff --git a/02-hub3.rb b/02-hub3.rb
index 5379bb4..f3c6e3d 100644
--- a/02-hub3.rb
+++ b/02-hub3.rb
@@ -21,13 +21,9 @@ $levels << Level.new do
end
def generate
- frames = {}
- @interfaces.each do |iface|
- next if rand < 0.3
- frames[@count.to_s] = Frame.new(iface, @count)
- @count += 1
- end
- frames
+ frame = Frame.new(interfaces.sample, @count)
+ @count += 1
+ frame
end
def click