Two former San Jose State University students were each sentenced Monday to 30 days of in-custody weekend work for forcing a bicycle lock around the neck of their black roommate.