Create randSSAndRandSN.py

RandSS and RandSN algorithms