TensorTom

Pseudo Random Number Generator

1342 visningar
37
This is my first attempt at a psuedo-random number generator in Pine. It is, as you can see, a failed attempt thus far. I began by trying to implement the random color generator as described here: https://www.tradingcode.net/tradingview/colours/random-colours/ in version 3 Pine (Not sure which version he was using). As you can see, the color isn't random.

The end goal here is to be able to get pseudo-random numbers for use in algorithms that require them, of which there are a significant few. Perhaps numbers aren't required so long as I can map colors to other data. We'll see. This is a work-in-progress and I encourage anyone who can help to do so. Algorithmically, the importance of being able to use random data can't be overstated.
Release Notes: switched x to outside the function as in the example this is derived from.
Release Notes: It now works!!! It was actually a simple fix. A huge thanks to Julia P. from TradingView Support. Now the real magic begins.
Ta bort från favoritskript Add to favorite indicators

Kommentarer

Good job guy! Thank you for public this script.
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