Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: find random numbers that are = to the first 2 number of a list.
Post: RE: find random numbers that are = to the first 2 ...

I am wondering if its possible to use past numbers to predict the next numbers. Is it possible that the Pseudorandom number generator of our computers behave the same as any supercomputer. Of course, ...
Frankduc General Coding Help 23 3,255 Apr-05-2023, 07:36 PM
    Thread: find random numbers that are = to the first 2 number of a list.
Post: RE: find random numbers that are = to the first 2 ...

I do care about the condition and the next numbers cause they are link. Say you have 13 millions possibilities of series of numbers looking 6 numbers on 49 . You want to extract the series where the...
Frankduc General Coding Help 23 3,255 Apr-04-2023, 05:43 PM
    Thread: find random numbers that are = to the first 2 number of a list.
Post: RE: find random numbers that are = to the first 2 ...

Buran, what i want is exactly the first code dean and lothar came with. I am looking for the serie of random numbers with the condition where 1 or 2 are the first numbers in the random serie.
Frankduc General Coding Help 23 3,255 Apr-04-2023, 05:12 PM
    Thread: find random numbers that are = to the first 2 number of a list.
Post: RE: find random numbers that are = to the first 2 ...

At a second per serie of numbers to check it could take up to 45 days before i get a return.
Frankduc General Coding Help 23 3,255 Apr-04-2023, 12:59 PM
    Thread: find random numbers that are = to the first 2 number of a list.
Post: RE: find random numbers that are = to the first 2 ...

Yes it is. Its a process of elimination to lower the number of possibilities returned using more numbers we know. The more i will add numbers the greater the compute power it needs. If i am not mista...
Frankduc General Coding Help 23 3,255 Apr-03-2023, 05:53 PM
    Thread: find random numbers that are = to the first 2 number of a list.
Post: RE: find random numbers that are = to the first 2 ...

looking for reccuring mathematical pattern.
Frankduc General Coding Help 23 3,255 Apr-03-2023, 03:47 PM
    Thread: find random numbers that are = to the first 2 number of a list.
Post: RE: find random numbers that are = to the first 2 ...

Dean you are asking a very good question. In the first case it return attempt 3722 : [1, 2, 3, 12] In the second approach: [1, 2, 55, 86] If i increase the number in my start_list and i increase to...
Frankduc General Coding Help 23 3,255 Apr-03-2023, 03:36 PM
    Thread: find random numbers that are = to the first 2 number of a list.
Post: RE: find random numbers that are = to the first 2 ...

good question Dean and thats where i am not sure last code from rob works. Because if you compare found list numbers to random_list they dont match. Like i said you are asking the computer to throw a...
Frankduc General Coding Help 23 3,255 Apr-03-2023, 03:03 PM
    Thread: find random numbers that are = to the first 2 number of a list.
Post: RE: find random numbers that are = to the first 2 ...

answer in post 5, unless you meant that post 5 is not clear
Frankduc General Coding Help 23 3,255 Apr-03-2023, 02:37 PM
    Thread: find random numbers that are = to the first 2 number of a list.
Post: RE: find random numbers that are = to the first 2 ...

Rob thats not what i am looking for neither what denystad propose in post 2. Let me rephrase the problem. Suppose you ask a computer to generate 4 numbers. But you want those numbers to begin with ...
Frankduc General Coding Help 23 3,255 Apr-03-2023, 02:33 PM
    Thread: find random numbers that are = to the first 2 number of a list.
Post: RE: find random numbers that are = to the first 2 ...

Well there is always: import random random_list = [] start_list = [1,2] for i in range(4): num1 = random.randint(1,2) random_list.append(num1) for i in start_list: if i == n...
Frankduc General Coding Help 23 3,255 Apr-03-2023, 02:20 PM
    Thread: find random numbers that are = to the first 2 number of a list.
Post: find random numbers that are = to the first 2 numb...

Hello, I have a list. start_list = [1,2] and a random_list[] My goal is to find 4 random numbers where the 2 first numbers are the same as my start_list. I came up with that code: import rando...
Frankduc General Coding Help 23 3,255 Apr-03-2023, 01:58 PM
    Thread: Cant access variable from anywhere
Post: RE: Cant access variable from anywhere

Not sure i follow you.
Frankduc General Coding Help 33 4,607 Nov-09-2022, 03:29 PM
    Thread: Cant access variable from anywhere
Post: RE: Cant access variable from anywhere

I thought i followed your pattern. Sorry i did some changes.
Frankduc General Coding Help 33 4,607 Nov-09-2022, 03:25 PM
    Thread: Cant access variable from anywhere
Post: RE: Cant access variable from anywhere

Output:update <bound method MyIndicator.update of <__main__.MyIndicator object at 0x00000284A80FC370>> __main__ 35.0 3835.75 3835.75 <function MyIndicator.__init__ at 0x00000284A87B11B0...
Frankduc General Coding Help 33 4,607 Nov-08-2022, 06:24 PM
    Thread: Cant access variable from anywhere
Post: RE: Cant access variable from anywhere

All my variables are returning 0. Where am i wrong? Btw what i meant by printing variables inside the class is to print those who are not part of def__init__ I mean you can print a variable within a c...
Frankduc General Coding Help 33 4,607 Nov-08-2022, 05:58 PM
    Thread: Cant access variable from anywhere
Post: RE: Cant access variable from anywhere

I need some explanation: With python i dont get my data live, i use an excel file: dataframe1 = pd.read_excel(r'C:\Users\faceo\Documents\NinjaTrader Grid 2022-10-26 01-30 .xlsx') df = dataframe1Than ...
Frankduc General Coding Help 33 4,607 Nov-04-2022, 05:03 PM
    Thread: Cant access variable from anywhere
Post: RE: Cant access variable from anywhere

This the best i can come with. Its simple every loop arent nested but index, foundindex, sumvolfibo and f are connected. Main variables are declare in private on top of the class. The other variables ...
Frankduc General Coding Help 33 4,607 Nov-03-2022, 07:57 PM
    Thread: Cant access variable from anywhere
Post: RE: Cant access variable from anywhere

Sorry i dont want to post the code here. I even wonder if its possible to erase your post. I posted enough, ill try to find a similar exemple. In C# i have: First loop going from foundIndex to the be...
Frankduc General Coding Help 33 4,607 Nov-03-2022, 03:59 PM
    Thread: Cant access variable from anywhere
Post: RE: Cant access variable from anywhere

Its working because you included fibo inside the loop. You can integrate fibo and sumvolfibo in index loop or foundindex loop and even integrate index loop inside foundIndex. My point there will be al...
Frankduc General Coding Help 33 4,607 Nov-03-2022, 01:45 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020