@robert-hh Thanks
What I want here is to simulate some users doing 1 of 3 things, so:
>>> print(uos.urandom(1)[0] %3)
0
>>> print(uos.urandom(1)[0] %3)
0
>>> print(uos.urandom(1)[0] %3)
1
>>>
>>> print(uos.urandom(1)[0] %3)
2
>>> print(uos.urandom(1)[0] %3)
2
simplifies my code and will be OK.
Regarding Micropython, I've 'hacked' a bit of other code at times and this is the first time I'm having to find the functions I need, so little things like 'dir(os)' are gems.
Dave