Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions main.hoc
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ func pmcell_append() {
//************************NEW CELLS*********************************
objref randomDelay
randomDelay = new Random(tonicSeed)
randomDelay.Random123()
randomDelay.uniform(0, tonicPeriodMean)

proc createTonicE() {
Expand All @@ -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)
Expand Down Expand Up @@ -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 {
Expand Down
4 changes: 4 additions & 0 deletions readme.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@

Author contact: chris.fietkiewicz@case.edu Author website:
<a href="http://filer.case.edu/cxf47">http://filer.case.edu/cxf47</a>

Changelog
---------
2024-11: Updated hoc files to use Random123
</pre></html>