File: misc.c

package info (click to toggle)
xjump 2.7
  • links: PTS
  • area: main
  • in suites: potato
  • size: 128 kB
  • ctags: 129
  • sloc: ansic: 954; makefile: 64; sh: 8
file content (25 lines) | stat: -rw-r--r-- 331 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*****************************************
  xjump version 2

  misc.c   

  (C) July 16, 1997  ROYALPANDA
*****************************************/

#include<stdio.h>


/*  */

int rnd( int range )
{
  return ( random() & 0xffff ) * range / 0xffff ;
}


/*  */

void srnd( void )
{
  srandom( time(NULL) );
}