<commit_before>public extension Range where Element.Distance: RandomizableIntegerType {

	public var randomIndex: Element? {
		let distance = startIndex.distanceTo(endIndex) - 1
		if distance == 0 {
			return nil
		}

		return startIndex.advancedBy(Element.Distance.random(start: 0, end: distance))
	}
}
<commit_msg>Fixed Range.randomIndex<commit_after>public extension Range where Element.Distance: RandomizableIntegerType {

	public var randomIndex: Element? {
		let distance = startIndex.distanceTo(endIndex) - 1
		if distance < 0 {
			return nil
		}

		return startIndex.advancedBy(Element.Distance.random(start: 0, end: distance))
	}
}

{'fraction_non_alphanumeric': 0.093603744149766, 'fraction_numerical': 0.0093603744149766, 'mean_word_length': 4.783783783783784, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '803759', 'n_tokens_mistral': 209, 'n_tokens_neox': 184, 'n_words': 49}