aboutsummaryrefslogtreecommitdiff
path: root/01-hub2.rb
diff options
context:
space:
mode:
Diffstat (limited to '01-hub2.rb')
-rw-r--r--01-hub2.rb10
1 files changed, 3 insertions, 7 deletions
diff --git a/01-hub2.rb b/01-hub2.rb
index 7ecd8a1..d5b0ba1 100644
--- a/01-hub2.rb
+++ b/01-hub2.rb
@@ -19,13 +19,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