test-rand script added.