Sha256: c00e08996258ee890cbf5fbde204e68b92029828339cf9d8f77a0412a703f5fe
Contents?: true
Size: 160 Bytes
Versions: 1
Compression:
Stored size: 160 Bytes
Contents
module Codebreaker class SecretCodeGenerator LENGTH = 4 RANGE = (1..6).freeze def call Array.new(LENGTH) { rand(RANGE) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cb-core-0.1.0 | lib/codebreaker/secret_code_generator.rb |