Sha256: cfe2d8855c1a40c92e8aee588d4d08914bfbe387d6b55415ff8bced7c9a9f837

Contents?: true

Size: 340 Bytes

Versions: 1

Compression:

Stored size: 340 Bytes

Contents

# frozen_string_literal: true

require_relative "mega_lotto/version"

module MegaLotto
  class Error < StandardError; end
  # Your code goes here...

  # Simple class top generate the lotto numbers
  class Drawing
    def draw
      5.times.map { single_draw }
    end

    private

    def single_draw
      rand(1..100)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
win_lotto-0.1.0 lib/mega_lotto.rb