Re: [fluka-discuss]: change random seed

From: Horváth Dávid <>
Date: Wed, 27 Mar 2019 15:45:05 +0000

Dear Alessandro,

you can use sed to replace the RANDOMIZ line in the input file with a new one. Take a look on the following partial bash script.

seed_string=`printf "% 8i" ${seed}`
sed -i "s/^RANDOMIZ.*/RANDOMIZ 1.0${seed_string}.0/" ${inputfile}

I hope this helps.

Kind regards,
Dávid Horváth

Junior Researcher
Radiation Protection
ELI Beamlines

T: +420 266 051 283
M: Za Radnicí 835, 25241 Dolní Břeľany, Czech Republic

From: <> on behalf of Alessandro <>
Sent: 27 March 2019 15:40:08
Subject: [fluka-discuss]: change random seed

Dear FLUKA experts,

We are going to do some heavy simulations. To speed ut the calculation
time we thought to launch more simulations in series with a fewer number
of particles. To avoid having the same results we want to change the
seed of the random number generator. I want to ast to you if it is
possible to change it using the include comand or you think there is a
better solution? The complete idea is to use a bash file to change the
seed and then relaunch the fluka run. In this way, it will be possible
to do all of this using only one comand on the server.

Thank you in advance and best regards, Alessandro Calamida.

You can manage unsubscription from this mailing list at

You can manage unsubscription from this mailing list at
Received on Wed Mar 27 2019 - 17:55:37 CET

This archive was generated by hypermail 2.3.0 : Wed Mar 27 2019 - 17:55:39 CET