(Re-)posted here, as inadvertantly sent to Abraham's email, as I replied on my phone!
Thanks Abraham!
That's great advice for the basic Lotto selection. My query was about how to use the same procedure to select a separate set of numbers (as per my EuroMs.aia).
I tried a For loop with an If-Then-Else block, using a variable as the number but nothing worked. I set the variable then changed it after the first iteration but I either got a never-ending loop or a 1-5 sequence for the first set and a random selection for the second set. I tried a While block too but got similar results.
I'll have another go and post my attempts, unless you or others can suggest how to achieve my goal in the meantime.
TIA
Stuart
Two 'lucky stars' selected from 1-12. Numbers in the 'luck stars' can duplicate numbers in the 'main'.

Use this block to generate repeatable sequences of random numbers. You can generate the same sequence of random numbers by first calling random set seed with the same value. This is useful for testing programs that involve random values.
If you keep changing the seed, the numbers are no longer repeatable. With a seed you can generate the same results and by using different seeds , you can guarantee that a different number sequence will be generated.
Does it makes a difference? I have no idea. Perhaps others will comment.
Regards,
Steve
Great info. I'll remember that for testing in future and making the RNG more sophisticated.
Cheers, Stuart
if you are adding random numbers to a list and then generate next number,check if it is in list,if it is,generate another one... In my opinion you loose a bit of "randomness"!Much better to remove random number from a list,and generate another one only from numbers remaining.
About taking the numbers from a single pool to avoid the problem mentioned above, here’s a procedure I made some time ago to create a list of random numbers, with these options
Minimum
Maximum
How many numbers
Repeat or unique numbers
Sorted or unsorted
Sort order ascending or descending
