source: liacs/ai/poker/data/xor.pl@ 229

Last change on this file since 229 was 2, checked in by Rick van der Zwet, 15 years ago

Initial import of data of old repository ('data') worth keeping (e.g. tracking
means of URL access statistics)

  • Property svn:executable set to *
File size: 255 bytes
Line 
1#!/usr/bin/env perl -w
2#$Id: xor.pl 545 2008-04-06 20:46:24Z rick $
3
4if (defined ($ARGV[0])) {
5 $MAX = $ARGV[0];
6} else {
7 $MAX = 1000;
8}
9
10
11for (0 .. $MAX) {
12 $a = int(rand(2));
13 $b = int(rand(2));
14 $c = $a ^ $b;
15 print "$a $b $c\n"
16}
17
18
Note: See TracBrowser for help on using the repository browser.