TensorTom

Pseudo Random Number Generator

Dilihat 827 kali
31
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.
Jul 10
Catatan Pelepasan: switched x to outside the function as in the example this is derived from.
Jul 13
Catatan Pelepasan: It now works!!! It was actually a simple fix. A huge thanks to Julia P. from TradingView Support. Now the real magic begins.
Keluarkan daripada Skrip Pilihan Tambah kepada Skrip Pilihan

Komen

Good job guy! Thank you for public this script.
Balas
Laman Utama Penyaring Saham Penyaring Forex Penyaring Kripto Kalendar Ekonomi Bagaimana ia berfungsi Ciri-ciri Carta Harga Rujuk rakan Peraturan Dalaman Pusat Bantuan Laman web dan Penyelesaian Broker Widget Penyelesaian Pencartaan Perpustakaan Pencartaan yang Ringan Blog & Berita Twitter
Profil Tetapan Profil Akaun dan Pengebilan Rujuk rakan Tiket Sokongan Saya Pusat Bantuan Idea yang diterbitkan Pengikut Mengikuti Mesej Peribadi Sembang Daftar Keluar