I am looking for how I can random generate a value like this 23-3455673. My issue is I'm not sure how to get the - in the middle of my random numeric code. I am using a Maven java project and using the RandomStringUtils.randomnumeric(10)
So looking for a way to random generate the value as 23-5672345 basically two digits then a - then 7 digits all in a single string.
I'm not super skilled here so i really am not looking for highly technical answers just the simplest method to make this work is what I'm looking for.
Thanks in advance for any advise on how to accomplish this.
Aucun commentaire:
Enregistrer un commentaire