Khalil Gharbaoui Posted on Oct 2, 2019 Answer: How do I generate a random 10 digit number in ruby? answer re: How do I generate a random 10 digit number in ruby? Mar 27 '19 4 ('%010d' % rand(0..9999999999)).to_s or "#{'%010d' % rand(0..9999999999)}" Open Full Answer Top comments (1) Subscribe Personal Trusted User Create template Templates let you quickly answer FAQs or store snippets for re-use. Submit Preview Dismiss Collapse Expand vamsi pavan mahesh gunturu vamsi pavan mahesh gunturu vamsi pavan mahesh gunturu Follow Skills: Ruby without Rails, Ruby on Rails, React Find my profile here: https://bit.ly/vamsi-resume Email gvpmahesh@gmail.com Location Bangalore Education B.Tech Joined Dec 12, 2017 • Nov 12 '20 Dropdown menu Copy link Hide Hi Khalil, can you please explain what's going on in the snippet you have written Code of Conduct • Report abuse Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well Confirm For further actions, you may consider blocking this person and/or reporting abuse
Top comments (1)
Hi Khalil, can you please explain what's going on in the snippet you have written