)]}'
{"oslo/vmware/objects/datastore.py":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"3c1a694a6e0bb7ec30d3008eea1d9836c89f3d1b","unresolved":false,"context_lines":[{"line_number":132,"context_line":""},{"line_number":133,"context_line":"    @staticmethod"},{"line_number":134,"context_line":"    def choose_host(hosts):"},{"line_number":135,"context_line":"        i \u003d random.randrange(0, len(hosts))"},{"line_number":136,"context_line":"        return hosts[i]"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"baa201ad_47dee240","line":135,"updated":"2014-09-30 17:29:04.000000000","message":"should this not be len(hosts) -1 ?","commit_id":"44e3050f196ad2b5054024c33f47b6dbb25a0ffd"},{"author":{"_account_id":8759,"name":"Arnaud Legendre","email":"arnaudleg@gmail.com","username":"arnaud"},"change_message_id":"583560af5a2c911c6d44261a473e4f4e72883857","unresolved":false,"context_lines":[{"line_number":132,"context_line":""},{"line_number":133,"context_line":"    @staticmethod"},{"line_number":134,"context_line":"    def choose_host(hosts):"},{"line_number":135,"context_line":"        i \u003d random.randrange(0, len(hosts))"},{"line_number":136,"context_line":"        return hosts[i]"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"baa201ad_dd7b2c8a","line":135,"in_reply_to":"baa201ad_47dee240","updated":"2014-10-03 18:37:23.000000000","message":"No, let me illustrate:\n\narr \u003d [1,2,3]\n\nlen(arr) \u003d 3\n\nrandom.randrange(0, len(arr)) will return 0,1 or 2","commit_id":"44e3050f196ad2b5054024c33f47b6dbb25a0ffd"}]}
