Re: FLUKA: Gaussian random numbers
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
Partial thread listing: