Yep, the only part you need is the part I squared in red. The print was just proof it works. It’s a simple operation but I usually proof test what I tell people here in case I overlook something. Still entirely possible I overlook things though! I do recommend making it a macro if you use this often.
This is good for simple operations, but if you need weighted randomness or say a drop rate system you’ll need to use a different way.
