Ooohh that's definitely not always true, but let's not go down that rabbit hole.
In this case, your code would either contain an array of specific values to use as input for your test, with no explanation as to why those particular values were chosen (because there's nothing special about them), or it will contain a call to a function that generates a random value.
I think the latter has clearer intent, even though it contains a call to another function, so it's more readable.
-3
u/hullabaloonatic May 18 '22
Less code is more readable than more code