From 896aed8dfc51901eb68e459f654accd8199aec02 Mon Sep 17 00:00:00 2001 From: Goran Jelic-Cizmek Date: Wed, 13 Nov 2024 14:10:26 +0100 Subject: [PATCH 1/2] Fixes for RNG --- main.hoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.hoc b/main.hoc index 06e7d0c..ae4b1ae 100644 --- a/main.hoc +++ b/main.hoc @@ -62,6 +62,7 @@ func pmcell_append() { //************************NEW CELLS********************************* objref randomDelay randomDelay = new Random(tonicSeed) +randomDelay.Random123() randomDelay.uniform(0, tonicPeriodMean) proc createTonicE() { @@ -81,7 +82,9 @@ proc createPM() { //***********************************CONNECTIONS*************************** objref randomConnection, randomWeight, leakRecord, napRecord // Random number generator and lists of random values randomWeight = new Random(weightSeed) +randomWeight.Random123() randomConnection = new Random(connectSeed) +randomConnection.Random123() randomConnection.uniform(0, 1) leakRecord = new Vector(numPM) napRecord = new Vector(numPM) @@ -129,6 +132,7 @@ proc wirePM() { //***********************ADDING HETEROGENIETY******************************* objref randomCells // Random number generator for cell heterogeneity randomCells = new Random(cellSeed) +randomCells.Random123() proc randomizeCells () { for i = 0, pmcells.count()-1 { From dd1e2f50704cec18f2ee3a41fe3dc7303e7ecc61 Mon Sep 17 00:00:00 2001 From: Goran Jelic-Cizmek Date: Mon, 25 Nov 2024 14:44:46 +0100 Subject: [PATCH 2/2] Changelog --- readme.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/readme.html b/readme.html index 3dbb50c..1321243 100644 --- a/readme.html +++ b/readme.html @@ -25,4 +25,8 @@ Author contact: chris.fietkiewicz@case.edu Author website: http://filer.case.edu/cxf47 + +Changelog +--------- +2024-11: Updated hoc files to use Random123