Problem with simple card shuffle program
Hello all, sorry if this is just me being dopey, but I have been playing around and made a simple card shuffle program, but I get nonsensical results like "2 of Jack" and "0 of Diamonds". I just wanted to check if it's just me? I can't see why a face would become a suit in this instance?
Many thanks!
3 Replies
it's not clear from the docs but
random_ui64
returns a value in the provided range inclusive on both ends so you have some out of bounds indexing happeningAh thank-you! 🤦♂️
Congrats @Zbornak, you just advanced to level 15!