I tried to have user ids you will find that if you press refresh the ending numbers will not match.
I have a len()-2 to get rid of the “.0”
Is this due to possibly some automated rounding?
function setup()
user = "david.hall"
x = math.random(1000, 1000000000000)
y = tostring(x)
z = string.sub(y, 0, y:len()-2)
UserID = z
print(UserID.." UID")
saveLocalData(user.."UserID", UserID)
a = readLocalData(user.."UserID")
b = tostring(a)
c = string.sub(a, 0, b:len()-2)
LoginUser = c
print(LoginUser.." LU")
end