Retired
Pick a Pair of Random Elements From A Given Range (retired)
Description:
This Kata is about picking two unique random elements from a given closed range. If the range has zero or one element then return nil.
Swift Standard Library has a greate methods to pick a random elements from a given range but any method to pick more than one at once.
The resulting method can be used in a Quiz Questions which asks to compare two numerical random elements from a pre-defined range.
Example: Given Closed Range: range = 0...10
correct result tuple:
- (0, 1)
- (1, 0)
- (10, 2)
- (3, 8) etc.
not correct result tuple:
- (0, 0)
- (3, 3) etc.
Fundamentals
Similar Kata:
Stats:
Created | Dec 9, 2019 |
Warriors Trained | 53 |
Total Skips | 2 |
Total Code Submissions | 84 |
Total Times Completed | 15 |
Swift Completions | 15 |
Total Stars | 2 |
% of votes with a positive feedback rating | 46% of 12 |
Total "Very Satisfied" Votes | 4 |
Total "Somewhat Satisfied" Votes | 3 |
Total "Not Satisfied" Votes | 5 |
Total Rank Assessments | 11 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 1 kyu |
Lowest Assessed Rank | 8 kyu |