mardi 13 décembre 2016

Insert a random number in a random place of a string with javascript

I've got a lot of strings full of characters. I need them to have random numbers in random places.

ex:

teststring
anotherone
andthelast

I want to have it:

test4stri98ng
another11one
and12the21last

Any ideas?




Aucun commentaire:

Enregistrer un commentaire