never heard of randbetween, but does exactly what I want, thanks. Just goes to show that RAND() should be used with care!