better rand.end handling

if it is an empty method then end = start