#Replace random letters with other random letters in text
1 messages · Page 1 of 1 (latest)
shuffle the list and get the first two elements. replace the first with the second
What, how to do that please? I dont know it
https://skripthub.net/docs/?id=2494
https://skripthub.net/docs/?id=942
https://skripthub.net/docs/?id=1114
Shuffles given list randomly. This is done by replacing indices by random numbers in resulting list.
The first, last, range or a random element of a set, e.g. a list variable, or a queue.
Asking for elements from a queue will also remove them from the queue, see the new queue expression for more information.
See also: random expression
And is some possible to replace letter in text, at 5. char of that text?
Yes
sure, get the 5th character
Extracts part of a text. You can either get the first <x> characters, the last <x> characters, the character at index <x>, or the characters between indices <x> and <y>. The indices <x> and <y> should be between 1 and the length of the text (other values will be fit into this range).
You can also split the string at “”, which will return a list of characters. Then you can edit {_char::n} (for as many n as you need), then join the list back up into a big string
how please? when I have variable {_txt} and I want replace 5. char of that variable? I dont understand it
split your text at "", set the 5th element of the list to a random letter, join the list
how please, I dont understand, I never do that, I readed the doc but I always dont understand
Which part confuses you?
how to split that text
Set a list var to the string split at “”
”example” split at x” => “e” and “ample”
”example” split at “” => “e”,”x”, … ”l”, ”e”
Okay thank you
Okay, now I better understand how it work, but I dont knoh how to implement it to code
this dont work
.
Its an expression not an effect
uuh, how please, it dont work
Ihave it, thank you