[ create a new paste ] login | about

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

C, pasted on Jun 3:
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main()
{
  srand((unsigned) time(NULL));
  printf("number is: %d", rand());

  return 0;
}


Output:
1
number is: 81702301


Create a new paste based on this one


Comments: