Detect if JavaScript array of random numbers are all multiples of each other?

I’m generating an array of 5 random numbers. Once generated, I want to ensure that they’re all not multiples of each other (super strange edge case). If they are, I want to regenerate them. So I don’t want to see [2,4,6,8,10] or [4,8,12,16,20].

How would I detect that?