documented sample()