EnvelopeAlloc
You can split big number to arrays like:
unit = 100
provider = EnvelopeAlloc::Provider.new 20*unit, 13, unit: unit # 20*unit => total_num|big_integer, 13 => alloced num witch u want, unit => mabey u should set 100 or other integer
provider.alloc_items #=> [147, 156, 181, 176, 169, 102, 198, 190, 115, 126, 164, 151, 125]
Installation
Add this line to your application's Gemfile:
gem 'envelope_alloc'
And then execute:
$ bundle
Or install it yourself as:
$ gem install envelope_alloc
Enjoy!