Did you know how to randomly generate this sequence with random nambers from I 39 to 2 , faster is posible ?
Sequence,all next member of sequence < the previous ?
39 38 37 32 31 30 28 27 24 22 21 15 12 11 9 7 6
thank you
import random as A
B=list(range(39,1,-1));C=A.sample(B,k=A.randint(1,len(B)))
C.sort(reverse=True);print(C)
Bro, thank you very mach.Worked, faster theny scrypt, but, no so fast.
Bro, can you make example of a scrypt with your super fast RNG generator on rust ?
please
numbers from 39 to 6.
[39, 38, 37, 32, 31, 30, 28, 27, 24, 22, 21, 15, 12, 11, 9, 7, 6]
?
ps in python I get only 50000 examples every 3 seconds:
import random as A
tri = [39, 38, 37, 32, 31, 30, 28, 27, 24, 22, 21, 15, 12, 11, 9, 7, 6]
B=list(range(39,5,-1))
C =[]
count = 0
while tri != C:
count=count+1
C=A.sample(B,k=A.randint(17,17))
C.sort(reverse=True);
if count % 50000 ==0:
print(C,count)
[37, 36, 35, 34, 33, 30, 28, 27, 22, 20, 15, 14, 13, 9, 8, 7, 6] 2000000
[38, 34, 33, 31, 30, 28, 27, 26, 25, 24, 22, 16, 13, 12, 10, 7, 6] 2050000
[39, 35, 34, 33, 31, 29, 28, 27, 23, 22, 20, 19, 17, 13, 12, 11, 6] 2100000
[38, 37, 35, 34, 32, 31, 26, 25, 24, 23, 22, 21, 18, 15, 14, 11, 6] 2150000
[38, 37, 36, 33, 32, 29, 27, 26, 24, 23, 22, 21, 20, 18, 14, 8, 6] 2200000
[36, 32, 31, 30, 29, 28, 26, 25, 22, 18, 17, 15, 13, 10, 9, 8, 6] 2250000
[38, 36, 32, 31, 30, 28, 27, 26, 25, 23, 21, 20, 19, 17, 13, 9, 8] 2300000