Name

random

random limit

Return a pseudorandom integer greater than or equal to 0 and less than limit.

random seed [seedval]

Reset the random number generator using the number seedval, or if omitted, a seed based on the current date and time.

Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.