Help for this page

Select Code to Download


  1. or download this
    perldoc -f rand
    
  2. or download this
    my %gates = (
      'gate001' => {
    ...
        'outputs' => [], # array of output values
      }
    );
    
  3. or download this
    for (1..20) {
      push @{$gates{'gate001'}{'inputs'}}, rand(2.0) - 1.0;
    }