Improve memory performance by using Vector and not Array in RNG

Signed-off-by: Gary Pamparà <gpampara@gmail.com>