Aye.  There’s no LOOP after the DO.  There’s also no dice generator, game, or anything else after the CLOSE...
I really didn’t think it was necessary to type anything more, as it’s a PITA to write code on the iPad.  I *only* posted what was necessary to get a random number...   Inside a DO — LOOP, as it is, would fail to run properly anyway — there’s a CLOSE statement in there which would invalidate the next run of GET.  
I left it incomplete, only to show the RND process.  What occurs after that would, of course, be up to whoever is using it.  
As I’ve said before: If it’s not in a code box, it’s not complete code; it’s pseudo-code, at best, just to illuminate a specific idea.