This file is indexed.

/usr/share/gnudatalanguage/astrolib/randomchi.pro is in gdl-astrolib 2018.02.16+dfsg-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
26
27
28
29
30
31
32
33
34
35
36
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;+
;   NAME:
;      RANDOMCHI
; PURPOSE:
;      GENERATE CHI-SQUARE DISTRIBUTED RANDOM VARIABLES.
;
; AUTHOR : BRANDON C. KELLY, STEWARD OBS., SEP 2005
;
; INPUTS :
;
;   SEED - THE SEED FOR THE RANDOM NUMBER GENERATOR, CAN BE UNDEFINED.
;   DOF - THE DEGREES OF FREEDOM FOR THE CHI-SQUARED DISTRIBUTION.
;
; OPTIONAL INPUTS :
;
;   NRAND - THE NUMBER OF RANDOM NUMBERS TO DRAW
;-
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

function randomchi, seed, dof, nrand

if n_params() lt 2 then begin
    print, 'Syntax- result = randomchi( seed, dof[, nrand] )'
    return, -1
endif

if n_elements(nrand) eq 0 then nrand = 1

alpha = dof / 2.0
beta = 0.5

chisqr = randomgam( seed, alpha, beta, nrand )

return, chisqr
end