Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
// Random Number Generator in C .
SUBMITTED BY:
cooldemos
DATE:
Dec. 8, 2016, 11:11 a.m.
FORMAT:
C++
SIZE:
312 Bytes
Raw
Download
Tweet
HITS:
1789
Go to comments
Report
// Random Number Generator in C .
#include
<stdio.h>
#include
<stdlib.h>
#include
<time.h>
int
main
()
{
int
i
,
j
;
time_t
t
;
srand
((
unsigned
)
time
(
&
t
));
for
(
i
=
0
;
i
<
10
;
i
++
){
for
(
j
=
0
;
j
<
15
;
j
++
){
printf
(
"%d"
,
rand
()
%
10
);}
printf
(
"
\n
"
);}
return
0
;
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus