Author Topic: problem to creat a list and modify it  (Read 723 times)

0 Members and 1 Guest are viewing this topic.

jerosan

  • Member
  • *
  • Posts: 2
  • Gender: Male
  • Roulette Forum .cc | Member
    • View Profile
  • Rated: 0
problem to creat a list and modify it
« on: December 29, 2015, 07:52:24 PM »
Hi everybody,

I study the Law of Third. During last 37 spins, some numbers appear 1 time only, some numbers appear 2 times, some numbers appear 3 times etc. and some numbers dont appear at all.

In RX, I wish to view in a list the numbers that hit 1 time only during last 37 spins in each spin.

So I used "Calculate Outcome" for having this information and the "Set Max" function for creating the list.

Calculate Outcome of Number 0 to Record "number 0 spins" Data
Calculate Outcome of Number 1 to Record "number 1 spins" Data

 if record "number 0 spins" data = 1
 and number 0 hit 1 time
    begin
    Set Max to Record "tracked numbers" Layout Index
    add 1 to record "tracked numbers" layout index
    Copy  number 0 to Record "tracked numbers" Layout
    End
   
if record "number 1 spins" data = 1
and  number 1 hit 1 time
    begin
    Set Max to Record "tracked numbers" Layout Index
    add 1 to record "tracked numbers" layout index
    Copy  number 1 to Record "tracked numbers" Layout
    End
etc...

So with this code, if a number hit 1 time, it appears well in the list "tracked numbers".
But the problem I have is: if a Number hit a second time during this 37 spins, it still stays in the list anyway, the Number doesnt disappear from the list.
The list become longer and longer and keep all old numbers.
I want only numbers who hit 1 time during last 37 spins, if more, they have to disappear from the list.
How could I do that please?

Thanks a lot

Jerome

jerosan

  • Member
  • *
  • Posts: 2
  • Gender: Male
  • Roulette Forum .cc | Member
    • View Profile
  • Rated: 0
Re: problem to creat a list and modify it
« Reply #1 on: December 29, 2015, 08:24:37 PM »
A great thank to Les who create this file, the solution is here :)
Thanks again!!

Jerome




ystem "Double_Streets_Stepladder"
{
    List of number who hits 0 time :   3, 32, 11, 34, 20, 21, 18, 17, 15, 26, 23, 24   12 numbers
    List of number who hits 1 time:    27, 19, 25, 22, 35, 0, 36, 30, 33, 31, 10, 9, 12, 14, 13, 4, 5, 16   18 numbers
    List of number who hits 2 times:    1, 7, 29, 2   4 numbers
    List of number who hits 3 times:    6, 8   2 numbers
    List of number who hits 4 tmes:    28   1 numbers
}

method "main"
begin
    while Starting a new Session
    begin
            Copy list [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,
                       19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,
                       34,35,36,0] to Record "Numbers" layout
                       
            clear record "List of number who hits 0 time"  layout
            clear record "List of number who hits 1 time"  layout
            clear record "List of number who hits 2 time"  layout
            clear record "List of number who hits 3 time"  layout
            clear record "List of number who hits 4 time"  layout
    end
   
   

    while each spin
    begin
   
        call "calculate outcome for all numbers"
       
        //for hit 0 time
        put 0 on record "check" data; duplicate Record "List of number who hits 0 time" to record "temp";call "store results";duplicate record "temp" to Record "List of number who hits 0 time";
       
        //for hit 1 time
        put 1 on record "check" data; duplicate Record "List of number who hits 1 time" to record "temp";call "store results";duplicate record "temp" to Record "List of number who hits 1 time";

        //for hit 2 time
        put 2 on record "check" data; duplicate Record "List of number who hits 2 time" to record "temp";call "store results";duplicate record "temp" to Record "List of number who hits 2 time";

        //for hit 3 time
        put 3 on record "check" data; duplicate Record "List of number who hits 3 time" to record "temp";call "store results";duplicate record "temp" to Record "List of number who hits 3 time";

        //for hit 4 time
        put 4 on record "check" data; duplicate Record "List of number who hits 4 time" to record "temp";call "store results";duplicate record "temp" to Record "List of number who hits 4 time";
    end
end

method  "calculate outcome for all numbers"
begin
    put 1 on record "Numbers" layout index
   
    loop until record "Numbers" layout index > record "Numbers" layout count
    begin
        put 100% record "Numbers" layout index to record "Numbers" data index
       
        calculate outcome Record "Numbers" Layout to record "Numbers" data

        add 1 to record "Numbers" layout index
   end
end

method  "store results"
begin
    clear record "temp" layout
   
    put 1 on record "Numbers" layout index

    loop until record "Numbers" layout index > record "Numbers" layout count
    begin
        put 100% record "Numbers" layout index to record "Numbers" data index

        if record "check" data = record "Numbers" data
        begin
            add 1 to record "temp" layout index
            copy record "Numbers" layout to record "temp" layout
        end
       
        add 1 to record "Numbers" layout index
   end
end



drenek

  • Member
  • *
  • Posts: 8
  • Gender: Male
  • Roulette Forum .cc | Member
    • View Profile
  • Rated: 0
Re: problem to creat a list and modify it
« Reply #2 on: October 24, 2016, 04:41:20 PM »
Hello
I discovered this post with interest with this "rx code" to record the numbers that have come out 1 time, the numbers that came out 2 times ...
how to make this recording restarts at 0 after 37 laps?
Thank you for your reply.



Share via delicious Share via digg Share via facebook Share via furl Share via linkedin Share via myspace Share via reddit Share via stumble Share via technorati Share via twitter

clip
How to creat your own winning system...or the loosing one))

Started by praline

7 Replies
1006 Views
Last post February 20, 2017, 12:14:42 AM
by falkor2k15
xx
RSS Tutorial: How to modify Silvers Scripts...

Started by ThomasGrant

0 Replies
946 Views
Last post January 12, 2011, 05:08:31 AM
by ThomasGrant
xx
Anyone had this problem with RX?

Started by iggiv

2 Replies
674 Views
Last post April 02, 2014, 08:35:54 PM
by iggiv
xx
WHAT'S THE PROBLEM???????

Started by mogul397

18 Replies
1460 Views
Last post June 12, 2016, 04:15:21 PM
by Tamino