magazine resources subscribe about advertising

New Architect Daily
Commentary and updates on current events and technologies

CMP Media E-Book

Download your copy today.

Research
Search for reports and white papers from industry vendors and analysts.

This Week at NewArchitect.com Subscribe now to our free email newsletter and get notified when the site is updated with new articles







Day of Defeat Online Gaming

 New Architect > Archives > 1996 > 10 > Features  

The Tao of Java

Generating Random Hexangrams

By Mike Fichtelman

Throughout time, people have invented different ways to understand and cope with change. The ancient Chinese were no exception. Chinese philosophers called "Taoists" believed there were two primordial states, yin and yang, and that the tension between the two dynamically creates all that exists. From this belief, they evolved a philosophy of change, which is embodied in the classic I Ching,or Book of Changes. The fundamental theme of the I Ching is that each facet of a particular moment in time, no matter how large or small, is a perfect reflection of that moment. Ancient Chinese scholars and philosophers symbolized each moment as a hexagram, and the I Ching is a compendium of the 64 hexagrams they developed.

Traditionally, the lines of a hexagram were generated using the "long" or "short" methods. The more-ancient long method involves the sequential sorting and selection of yarrow stalks. The short method involves the use of three coins, thrown six times. From a simple formula, one may derive a moving or unmoving yin (solid) line, or a moving or unmoving yang (broken) line. Figure 1 shows hexagram 57, called "Sun." Once a hexagram is obtained, the text of the I Ching is consulted in order to understand its meaning.

The I_Ching Applet

The I_Ching.java applet in



  Day of Defeat Online Gaming

home | daily | current issue | archives | features | critical decisions | case studies | expert opinion | reviews | access | industry events | newsletter | research | careers | info centers | advertising | subscribe | subscriber service | editorial calendar | press | contacts


Copyright © 2006 CMP Media, LLC Read our privacy policy, your California privacy rights, terms of service.
SDMG Web sites: BYTE.com, C/C++ Users Journal, Developer Pipeline, Dr. Dobb's Journal, DotNetJunkies, MSDN Magazine, Sys Admin,
SD Expo, SD Magazine, SqlJunkies, The Perl Journal, Unixreview, Windows Developer Network, New Architect

web2