Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Randomized Sentences
#1
I like to make a macro for randomized words of sentences. For example:
"I want to meet you"
"I, we, myself" "want to, wish to, consider to, like to", "meet you, know you, talk to you" etc
I want each word to be randomized from selected words, is there any way to do this?
#2
basic idea is this

Code:
Copy      Help
ARRAY(str) a b c
a="I[]We[]Myself"
b="want to[]wish to[]consider to[]like to"
c= "meet you[]know you[]talk to you"
str s=F"{a[RandomInt(0 a.len-1)]} {b[RandomInt(0 b.len-1)]} {c[RandomInt(0 c.len-1)]}"
out s;;show result in qm output pane not needed


Forum Jump:


Users browsing this thread: 2 Guest(s)