you can use this to generate a random userid:
function:
use:
function:
B4X:
Sub RandomString(length As Int) As String
Dim abc As String = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
Dim randomstr As String = ""
For i = 0 To length - 1
randomstr = randomstr & (abc.CharAt(Rnd(0,abc.Length)))
Next
Return randomstr
End Sub
use:
B4X:
Log(RandomString(12))