stsievert/swix

Seeding random variables

srambhatla opened this issue · 1 comments

Random numbers currently have a fixed seed. Would be nice to have a command to control it. For e.g. MATLAB has rng for this.

Closed.

A new global variable was defined in numbers.swift called SWIX_SEED. The call to LAPACK's dlarv updates the seed each time (the reason this fix wasn't as simple as I thought).