Anyway to access a random number generator within SambaPOS?

Think of using one for generating for game, drawing and such.

See this post - it has a lot of examples …


Is there a format for non repeating number?

If it’s date based it shouldnt repeat I would have though.

I don’t understand the question.

The number/string generated via those functions is random, so depending on their length (the longer the better), they are unlikely to be repeated from one call to the next.

say “3” appears on the first digit then the rest of the digits cannot have “3” much like lottery-a number will be used up when the ball rolls out.

No way to control that unless you use JScript…

Generate a number, store it as “used”
Generate another number, check it against “used” numbers and regenerate if necessary