X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/16dcc.git/blobdiff_plain/d69591c41135e899d27072006db6af016df62445..d509acd9cc478541bd9cf2f33686e60f3b77cce5:/evalPRNG/Rairo15.py diff --git a/evalPRNG/Rairo15.py b/evalPRNG/Rairo15.py index a13bb5f..1075580 100644 --- a/evalPRNG/Rairo15.py +++ b/evalPRNG/Rairo15.py @@ -81,6 +81,9 @@ f=[111, 94, 93, 116, 122, 114, 125, 88, 115, 126, 85, 84, 123, 98, 81, 120, 109, f = [223, 190, 249, 254, 187, 251, 233, 232, 183, 230, 247, 180, 227, 178, 240, 248, 237, 236, 253, 172, 203, 170, 201, 168, 229, 166, 165, 244, 163, 242, 241, 192, 215, 220, 205, 216, 218, 222, 221, 208, 213, 210, 212, 214, 219, 211, 217, 209, 239, 202, 207, 140, 139, 234, 193, 204, 135, 196, 199, 132, 194, 130, 225, 200, 159, 62, 185, 252, 59, 250, 169, 56, 191, 246, 245, 52, 243, 50, 176, 48, 173, 238, 189, 44, 235, 42, 137, 184, 231, 38, 37, 228, 35, 226, 177, 224, 151, 156, 141, 152, 154, 158, 157, 144, 149, 146, 148, 150, 155, 147, 153, 145, 175, 206, 143, 12, 11, 142, 129, 128, 7, 198, 197, 4, 195, 2, 161, 160, 255, 124, 109, 108, 122, 126, 125, 112, 117, 114, 116, 100, 123, 98, 97, 113, 79, 106, 111, 110, 99, 74, 121, 120, 71, 118, 103, 101, 115, 66, 65, 104, 127, 90, 89, 94, 83, 91, 81, 92, 95, 84, 87, 85, 82, 86, 80, 88, 77, 76, 93, 72, 107, 78, 105, 64, 69, 102, 68, 70, 75, 67, 73, 96, 55, 58, 45, 188, 51, 186, 61, 40, 119, 182, 181, 53, 179, 54, 33, 49, 15, 174, 47, 60, 171, 46, 57, 32, 167, 6, 36, 164, 43, 162, 1, 0, 63, 26, 25, 30, 19, 27, 17, 28, 31, 20, 23, 21, 18, 22, 16, 24, 13, 10, 29, 14, 3, 138, 41, 136, 39, 134, 133, 5, 131, 34, 9, 8] #f8 ou g8 f =[223, 250, 249, 254, 187, 251, 233, 232, 183, 230, 247, 180, 227, 178, 240, 248, 237, 236, 173, 172, 171, 238, 201, 168, 229, 166, 228, 244, 235, 242, 241, 192, 215, 220, 205, 216, 218, 222, 153, 152, 151, 210, 212, 214, 219, 146, 217, 209, 239, 142, 141, 206, 195, 234, 193, 136, 231, 196, 199, 197, 194, 226, 225, 200, 63, 188, 253, 252, 59, 190, 189, 176, 191, 246, 245, 164, 243, 162, 161, 177, 143, 170, 45, 44, 43, 138, 185, 184, 135, 38, 167, 165, 179, 34, 129, 224, 31, 154, 221, 158, 147, 26, 25, 156, 159, 22, 213, 149, 211, 150, 144, 208, 207, 14, 13, 204, 203, 202, 169, 8, 133, 198, 132, 4, 139, 131, 1, 160, 255, 124, 109, 108, 122, 126, 125, 112, 117, 114, 116, 100, 123, 98, 97, 113, 79, 106, 111, 110, 99, 74, 121, 120, 71, 118, 103, 101, 115, 66, 65, 104, 127, 90, 89, 94, 83, 91, 81, 92, 95, 84, 87, 85, 82, 86, 80, 88, 77, 76, 93, 72, 107, 78, 105, 64, 69, 102, 68, 70, 75, 67, 73, 96, 55, 58, 57, 62, 51, 186, 41, 40, 119, 182, 181, 53, 35, 54, 48, 56, 175, 174, 61, 60, 11, 46, 9, 32, 37, 6, 36, 52, 163, 50, 49, 0, 23, 28, 157, 24, 155, 30, 29, 16, 21, 18, 20, 148, 27, 19, 145, 17, 47, 10, 15, 140, 3, 42, 137, 12, 39, 134, 7, 5, 2, 130, 33, 128] + +f=[223, 238, 249, 254, 243, 251, 233, 252, 183, 244, 229, 245, 227, 246, 240, 176, 175, 174, 253, 204, 203, 170, 169, 248, 247, 226, 228, 164, 163, 162, 161, 192, 215, 220, 205, 216, 155, 222, 221, 208, 213, 150, 212, 214, 219, 211, 145, 209, 239, 202, 207, 140, 195, 234, 193, 136, 231, 230, 199, 197, 131, 198, 225, 200, 63, 188, 173, 184, 186, 250, 57, 168, 191, 178, 180, 52, 187, 242, 241, 48, 143, 46, 237, 236, 235, 138, 185, 232, 135, 38, 181, 165, 35, 166, 33, 224, 31, 30, 153, 158, 147, 218, 217, 156, 159, 148, 151, 149, 19, 210, 144, 152, 141, 206, 13, 12, 171, 10, 201, 128, 133, 130, 132, 196, 3, 194, 137, 0, 255, 124, 109, 120, 122, 106, 125, 104, 103, 114, 116, 118, 123, 98, 97, 113, 79, 126, 111, 110, 99, 74, 121, 72, 71, 70, 117, 101, 115, 102, 65, 112, 127, 90, 89, 94, 83, 91, 81, 92, 95, 84, 87, 85, 82, 86, 80, 88, 77, 76, 93, 108, 107, 78, 105, 64, 69, 66, 68, 100, 75, 67, 73, 96, 55, 190, 189, 62, 51, 59, 41, 60, 119, 182, 37, 53, 179, 54, 177, 32, 45, 44, 61, 172, 11, 58, 9, 56, 167, 34, 36, 4, 43, 50, 49, 160, 23, 28, 157, 24, 26, 154, 29, 16, 21, 18, 20, 22, 27, 146, 25, 17, 47, 142, 15, 14, 139, 42, 1, 40, 39, 134, 7, 5, 2, 6, 129, 8] + # chemin completement equilibre @@ -103,7 +106,7 @@ for j in range(len(f)): fbin[tuple(bin(j,n))] = bin(f[j],n) #nb d'iteration pour leMixing time -b = 150 +b = 110 x0 = bin(rn.randint(0,p2nm1),n) x = x0 @@ -118,7 +121,8 @@ print n,nbbit st = rn.getstate() while cpt < nbbit : - x= prngUnaireBin(fbin,b,x) + #x= prngUnaireBin(fbin,b,x) + x= prngRairobin(fbin,b,x) #print x fd.write("".join([str(t) for t in x])) #fd.write("".join([str(rn.randint(0,1)) for _ in range(n)]))