A stata implementation of the Bartels (1982) test for randomness