examples\book\digital-artists\chapter2\Listing2.2.ck
// Listing 2.2 Random integer generation using the Math library

// random integer number generation
// simulates the roll of a die

while (true)
{
    <<< "Dice Roll =", Math.random2(1,6) >>>;
    second / 2 => now;
}
home .. language .. program .. examples