#1 : 10/03-17 10:03 arwul
Posts: 94
|
I want to replace existing filenames with random filenames with 20 characters
Assumed <Rand Str:20> would work, but nothing happens. Any suggestions = p.s. later... I could not delete my post but I already solved it using a script from ivan however, still, it would be interesting to know how rand str should work. -- Sequence: var a = 7; //lenght you need var text = ''; var poss1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789' for(var i=0; i < a; i++) { text += poss1.charAt(Math.floor(Math.random() * poss1.length)); } return item.newBasename = text; -- |
#2 : 16/03-17 21:46 Kim Jensen
Administrator
Posts: 871 |
Reply to #1:
I don't understand why the <Rand Str:20> doesn't work for you. You are using the latest version, right? Are you able to supply a screenshot showing the <Rand Str:20> in use and not working? |