Choose randomly

Hello
please i need to know how to make openbullet choose something randomly
for example i will make too much phone models, i will make them manually, but i need the variable that openbullet choose randomly every log

for example i will put this !

SM-G815FFFF
SM-G414E
SM-A125F
SM-S88CX

and i need openbullet choose any one randomly in postdata every login

BLOCK:RandomInteger
  minimum = 1
  maximum = 5
  => VAR @RAND
ENDBLOCK

BLOCK:Translate
  input = @RAND
  translations = {("1", "SM-G815FFFF"), ("2", "SM-G414E"), ("3", "SM-A125F"), ("4", "SM-S88CX "), ("5", "SM-S4689k")}
  => VAR @TRANS
ENDBLOCK

BLOCK:HttpRequest
  url = "https://example.com"
  method = POST
  TYPE:STANDARD
  $"ID=<TRANS>"
  "application/x-www-form-urlencoded"
ENDBLOCK

1 Like

Or simply make a constant list and then use the “Get random item” block

1 Like

yes i have worked them with utility