Guest User

Untitled

a guest
Jun 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. import random;
  4. print "public final int[] RANDOM_INTEGERS = new int[] {";
  5. for i in range(1,10000):
  6. print str(int(random.uniform(0,0x7fffffff))) + ",";
  7. print "};";
  8.  
  9. public final int[] RANDOM_INTEGERS = new int[] {
  10. 963056418, 460816633, 1426956928, 1836901854, 334443802, 721185237, 488810483,
  11. 1734703787, 1858674527, 112552804, 1467830977, 1533524842, 1140643114, 1452361499,
  12. 716999590, 652029167, 1448309605, 1111915190, 1032718128, 1194366355, 112834025,
  13. 419247979, 944166634, 205228045, 1920916263, 1102820742, 1504720637, 757008315,
  14. 67604636, 1686232265, 597601176, 1090143513, 205960256, 1611222388, 1997832237,
  15. 1429883982, 1693885243, 1987916675, 159802771, 1092244159, 1224816153, 1675311441,
  16. 1873372604, 1787757434, 1347615328, 1868311855, 1401477617, 508641277, 1352501377,
  17. 1442984254, 1468392589, 1059757519, 1898445041, 1368044543, 513517087, 99625132,
  18. 1291863875, 654253390, 169170318, 2117466849, 1711924068, 564675178, 208741732,
  19. 1095240821, 1993892374, 87422510, 1651783681, 1536657700, 1039420228, 674134447,
  20. 1083424612, 2137469237, 1294104182, 964677542, 1506442822, 1521039575, 64073383,
  21. 929517073, 206993014, 466196357, 1139633501, 1692533218, 1934476545, 2066226407,
  22. 550646675, 624977767, 1494512072, 1230119126, 1956454185, 1321128794, 2099617717,
  23. //.... to 10,0000 instances
  24.  
  25. 5 iconst_3
  26. 6 newarray int [10]
  27. 8 dup
  28. 9 iconst_0
  29. 10 ldc <Integer 1000001> [12]
  30. 12 iastore
  31. 13 dup
  32. 14 iconst_1
  33. 15 ldc <Integer 1000002> [13]
  34. 17 iastore
  35. 18 dup
  36. 19 iconst_2
  37. 20 ldc <Integer 1000003> [14]
  38. 22 iastore
  39. 23 putfield net.jstuber.test.TestArrayInitializingConstructor.data : int[] [15]
  40.  
  41. 2016 dup
  42. 2017 sipush 298
  43. 2020 ldc_w <Integer 100298> [310]
  44. 2023 iastore
  45. 2024 dup
  46. 2025 sipush 299
  47. 2028 ldc_w <Integer 100299> [311]
Add Comment
Please, Sign In to add comment