Scaling of level spacing distribution