I'd suggest these orchestra and score
to investigate the behaviour of the xamp (max random number)
at randh's output time (it means 1/440Hz=~0,0022727272727272727272727272727273sec.).
try this and watch waveform!
 
;orchestra

 sr     = 44100
 kr     = 4410
 ksmps  = 10
 nchnls = 2
instr 1

k1 randh 10, 440
a1 oscil p4, k1, 1


k2 randh 1000, 440
a2 oscil p4, k2, 1
outs a1,a2
endin

;score

f 1 0 1024 10 1
i 1 0 0.0022727272727272727272727272727273 32000
e
 
I hope it will be usefull, it's my first message...
 
dott. Francesco Barreca