The random module provides access to functions that support many operations. Perhaps the most important thing is that it allows you to generate random numbers.
The Random module contains some very useful functions namely randint() function, random() function, choice() function, randrange() function and shuffle() function.
risk analysis :
There are three steps to perform Risk Analysis:
Searching the risk
Analyzing the impact of each individual risk
Measures for the risk identified
Test coverage is a useful tool for finding untested parts of a codebase. Test coverage is of little use as a numeric statement of how good your tests are.
the value of coverage analysis it helps you find which bits of your code aren't being tested. It's worth running coverage tools every so often and looking at these bits of untested code.
Big O notation is a mathematical notation that describes the limiting behavior of a function when the argument tends towards a particular value or infinity.
Big O notation describes the complexity of your code using algebraic terms.
example :
SelectionSort(List) {
for(i from 0 to List.Length) {
SmallestElement = List[i]
for(j from i to List.Length) {
if(SmallestElement > List[j]) {
SmallestElement = List[j]
}
}
Swap(List[i], SmallestElement)
}
}