forgot convert to integer for the index in Array.fn.random