何となく srand(1)の位置を変える

Format
C
Post date
2013-10-17 15:58
Zeitraum der Veröffentlichung
Unbegrenzt
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main(void) {
  4. int i;
  5. for (i=0; i<10; i++){
  6. srand(1);
  7. printf("%d\n", rand() % 100);
  8. }
  9. return 0;
  10. }
Download Printable view

URL of this paste

Embed with JavaScript

Embed with iframe

Raw text