script to generate random ranks