Re: FLUKA: Gaussian random numbers


To "FLUKA LIST @CERN" <fluka-discuss@listbox.cern.ch>
From Alberto Fasso' <fasso@slac.stanford.edu>
Date Wed, 10 Jan 2001 08:29:08 -0800 (PST)
In-reply-to <3A5C6E0C.B1EE4855@in2p3.fr >
Reply-To "Alberto Fasso'" <fasso@slac.stanford.edu>
Sender owner-fluka-discuss@listbox.cern.ch

On Wed, 10 Jan 2001, Laurent APHECETCHE wrote:

> I would like to simulate a beam profile which is not perfectly gaussian
> (truncated gaussian). As FLUKA is able to generate gaussian profiles
> already, I guess there is somewhere a routine to generated random
> numbers normally distributed. Can I use this routine to solve my
> problem, writing my own source routine ?

      CALL FLNRRN (RGAUSS)

returns one number normally distributed

      CALL FLNRR2 (RGAUS1, RGAUS2)

returns two such numbers, independent of each other

   Alberto


-- 
Alberto Fasso'
Stanford Linear Accelerator Center
Radiation Physics Dept. ms 48, 2575 Sand Hill Road, Menlo Park, CA 94025
Tel. +1 650 926 4062        Fax: +1 650 926 3569
fasso@slac.stanford.edu



Your name :
Your email :
Subject :
Body :
 

Partial thread listing: