random sgd finished