Testing codes for some random stuffs