A pitfall in random sampling