Use more modern random number generation
rename array to slice in the function signature
I have no idea if the the whole floating point comparison thing makes sense or not. I didn't touch that.
I think it's what you would write before Rust 1.16+. See this post on Stack Overflow.
Not a kata suggestion, and please, don't post solutions here. It's forbidden.
This comment is hidden because it contains spoiler information about the solution
A little typo in the description: "Determine number of decimal digits in an unsig[N]ed integer."
See issue with Rust above!
For current version of Swift the .characters has been depreceated.