RicardoSantos

Function Pseudo Random Generator

1371 visningar
71
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.
Release Notes: 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.
Ta bort från favoritskript Add to favorite indicators

Kommentarer

not clear what is this indicator how do you use it
Svara
Hi Sir , absolute work. I have a question : Can we limit range ? ( For example : Random numbers between : 20 - 100 ) . Best regards.
Svara
@Noldo, 20 + f_pseudo_random_number(80, 0)
+1 Svara
Noldo RicardoSantos
@RicardoSantos, Thank you so much !
Svara
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!
Svara
You are a historic trader in Trading View
Svara
nice
Svara
Hem Aktie-screener Forex-screener Krypto-screener Ekonomisk kalender Hur det fungerar Diagramfunktioner Priser Tipsa en vän Ordningsregler Hjälpcenter Webbsidor och mäklarlösningar Widgets Diagramlösningar Lightweight Charting Library Blogg och nyheter Twitter
Profil Profilinställningar Konto och fakturering Hänvisade vänner Mynt Mina kölappar Hjälpcenter Publicerade idéer Följare Följer Privata meddelanden Chatt Logga ut