Csound Csound-dev Csound-tekno Search About

Re: A bit off topic->score generation

Date1999-07-25 16:23
FromHans Mikelson
SubjectRe: A bit off topic->score generation
Hi,

>#!/usr/bin/perl
>
>for($x = 0; $x < 30; ++$x){
>        $it  = 100 * rand * rand * rand;
>        print "It is $it\n";
>}

I'm not sure why but the following seems to work:

for($x = 0; $x < 30; ++$x){
        $it  = 100 * $rand() * $rand() * $rand();
        print "It is $it\n";
}

Bye,
Hans Mikelson