Random match number via variable (inside wordp processing - rpelace)

irmscher

Client
Регистрация
28.11.2012
Сообщения
199
Благодарностей
6
Баллы
18
Here's an image so that it's more clear what I'm talking about



I'm generating random number from 1 to 10 and storing it into variable which I'm using inside this word processing element as a match number, however this approach doesn't work and I wonder why...
 

irmscher

Client
Регистрация
28.11.2012
Сообщения
199
Благодарностей
6
Баллы
18

nevadahsot

Client
Регистрация
27.04.2012
Сообщения
106
Благодарностей
5
Баллы
18
I'm generating random number from 1 to 10 and storing it into variable which ...
Produce a "random" directly.
http://wiki.zennolab.com/doku.php?id=en:ranges&s[]=random


+++++++++++++++++++++
If match No. is a digital number, means replace the No.x which matches.
2.xmlz has demonstrated it.
If match No. is random4 means 4 matches will be placed, at random matched place(s).
If want replace random times (with the same stuff),then

A: produce 1-4 via variable. if random(1-4), that's not the right format.
B: random1's effect is the same as random
++++++++++++++++++
Random take 1-4 lines and insert them on random blanks of a file.

==0 should be !=0
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)