TradingView
RicardoSantos
18 окт 2018 г., 15:47

Function Pseudo Random Generator 

Euro Fx/U.S. DollarFXCM

Описание

Function to return a pseudo random number.
you can constrict it to a range and provide a seed to step through on the same bar.

thanks to Duyck, for the link.

Информация о релизе

Update for V4, the function now can return a prng value every time its called.
it uses a external global variable to parse the seed in and out via parameters and output.
Комментарии
ChaimFarkas
not clear what is this indicator how do you use it
Noldo
Hi Sir , absolute work. I have a question : Can we limit range ? ( For example : Random numbers between : 20 - 100 ) . Best regards.
RicardoSantos
@OreInvestment, 20 + f_pseudo_random_number(80, 0)
Noldo
@RicardoSantos, Thank you so much !
spectertrading
You're undervalued, as a coder and a trader, I admire your work from a long time. I've been thinking how to generate random numbers for a while and I've only found failure - and there you go.

Good find!
ckd82
You are a historic trader in Trading View
420snoop
nice
Ещё