Many calculations are easily accessible via the calculated fields, others via the table calculations – and if there aren't, many smart people within the Tableau community come up with a workaround. One of those examples is a random number. Zen Master Joshua Milligan came up with the following: https://vizpainter.com/random-numbers-even-with-extracts/.
But, it is also possible to do so with the Python integration. We will look at two exercises.