TradingView
RicardoSantos
Oct 18, 2018 3:47 PM

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
更多