☰
Debian Codegraph
@
1.5.5.8-1
/
/
examples
/
book
/
digital-artists
/
chapter2
/
Listing2.2.ck
☽
☼
examples/book/digital-artists/chapter2/Listing2.2.ck
code
plain
raw
GPL-2.0+
2004 Ge Wang and Perry R. Cook. All rights reserved.
debian/copyright
1
// Listing 2.2 Random integer generation using the Math library
2
3
// random integer number generation
4
// simulates the roll of a die
5
6
while (true)
7
{
8
<<< "Dice Roll =", Math.random2(1,6) >>>;
9
second / 2 => now;
10
}
11