Arrays

How to sum array of numbers in Ruby

How to sum array of numbers in Ruby

I person an array of integers For illustration array 12332112389 Is location immoderate good manner to acquire the sum of them I cognize that sum zero arrayall
How do I pick randomly from an array

How do I pick randomly from an array

I privation to cognize if location is a overmuch cleaner manner of doing this Fundamentally I privation to choice a random component from an array of adaptable