[ create a new paste ] login | about

Link: http://codepad.org/h6z6poQO    [ raw code | output | fork ]

C, pasted on Jan 5:
1
2
3
4
5
6
7
8
9
10
#include <stdio.h>
#include <stdlib.h>
int main(void){
  int i;
  printf("%ld回に1回くらい出る\n", RAND_MAX/100); 
  for(i = 0; i < 100; i++){
    printf("[%d]%ld\n", i, rand());
  }
  return 0;
}


Output:
21474836回に1回くらい出る
[0]1804289383
[1]846930886
[2]1681692777
[3]1714636915
[4]1957747793
[5]424238335
[6]719885386
[7]1649760492
[8]596516649
[9]1189641421
[10]1025202362
[11]1350490027
[12]783368690
[13]1102520059
[14]2044897763
[15]1967513926
[16]1365180540
[17]1540383426
[18]304089172
[19]1303455736
[20]35005211
[21]521595368
[22]294702567
[23]1726956429
[24]336465782
[25]861021530
[26]278722862
[27]233665123
[28]2145174067
[29]468703135
[30]1101513929
[31]1801979802
[32]1315634022
[33]635723058
[34]1369133069
[35]1125898167
[36]1059961393
[37]2089018456
[38]628175011
[39]1656478042
[40]1131176229
[41]1653377373
[42]859484421
[43]1914544919
[44]608413784
[45]756898537
[46]1734575198
[47]1973594324
[48]149798315
[49]2038664370
[50]1129566413
[51]184803526
[52]412776091
[53]1424268980
[54]1911759956
[55]749241873
[56]137806862
[57]42999170
[58]982906996
[59]135497281
[60]511702305
[61]2084420925
[62]1937477084
[63]1827336327
[64]572660336
[65]1159126505
[66]805750846
[67]1632621729
[68]1100661313
[69]1433925857
[70]1141616124
[71]84353895
[72]939819582
[73]2001100545
[74]1998898814
[75]1548233367
[76]610515434
[77]1585990364
[78]1374344043
[79]760313750
[80]1477171087
[81]356426808
[82]945117276
[83]1889947178
[84]1780695788
[85]709393584
[86]491705403
[87]1918502651
[88]752392754
[89]1474612399
[90]2053999932
[91]1264095060
[92]1411549676
[93]1843993368
[94]943947739
[95]1984210012
[96]855636226
[97]1749698586
[98]1469348094
[99]1956297539


Create a new paste based on this one


Comments: