Static and dynamic spin correlations in the random one-dimensional antiferromagnetic CsCoxMg1-xCl3