mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Fix err calling (random-source-pseudo-randomize!)
Fixed this function to prevent an error when it is called. Unfortunately randon number generation is not very sophisticated yet, and needs improvement.
This commit is contained in:
parent
45accbf815
commit
1665ce9e98
1 changed files with 3 additions and 3 deletions
|
@ -93,11 +93,11 @@
|
|||
(define (random-source-pseudo-randomize! s i j)
|
||||
;; Pretty bad quality, upgrade after switch to better gen
|
||||
(define n1
|
||||
((random-source-make-integers i) m))
|
||||
i) ;((random-source-make-integers i) m))
|
||||
(define n2
|
||||
((random-source-make-integers j) m))
|
||||
j) ;((random-source-make-integers j) m))
|
||||
(define n3
|
||||
(abs (- n1 n2)))
|
||||
(abs (+ n1 n2)))
|
||||
(random-source-state-set! s n3))
|
||||
|
||||
(define (random-source-randomize! s)
|
||||
|
|
Loading…
Add table
Reference in a new issue