|
![]() |
||||||||||||||
Primitive Data Types TutorialFunction randomInteger function random(x) computes a random integer value in range [0,x-1]. Source code:{# random( 5 ), random( 5 ), random( 5 ), random( 5 ), random( 5 ), random( 5 ), random( 5 ), random( 5 ), random( 5 ), random( 5 ) #} Result:{# 3, 1, 4, 2, 0, 2, 1, 3, 2, 4 #}
|
|
||||||||||||||
© 2006 Saša Malkov | |||||||||||||||