fixed rand endpoints with single result - fixes #9