I want to take a sample number from this defined range of numbers.
def self.ipg_amount_range
(1..1000000000000000).to_a.sample
end
But when I load the code it takes a lot of time to load the code. Is there some way to speed up this code execution?
Aucun commentaire:
Enregistrer un commentaire