random algorithm in svcmodelnew.py