EasyManuals Logo

IBM 5100 Apl Reference Manual

IBM 5100
228 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #65 background imageLoading...
Page #65 background image
(
(
(
(~
('
c
The?
Function: Roll
('71
I~
Monadic (One-Argument) Form: Roll ?8
The
roll
function
result
is
a
randomly
selected integer
from
0
through
8-1
or
1
through
8 (depending
on
the
index origin). Each integer in
the
range has an equal
chance
of
being selected.
The
argument
can be a positive integral scalar, vector,
or
other
array.
The
shape
of
the
result
is
the
same as
that
of
the
argument:
7300
202
?:30
()
3
?~5
7 9
2
:I.
'?6
6
!5
1.1·
76
6
6
6
If
the
argument
is
an
array,
the
function
is
extended
to
each
element
of
the
array:
B~2
3pl1
22
33
~4
55
66
B
1.:1.
2~?
33
",.1+
!7.i
!:5
6
t')
?B
2
:l7
:1.6
21+
:I.~~
,+
Dyadic (Two-Argument)
Form
See
the
Deal
function
later
in
this
chapter
under
Primitive Mixed Functions.
61

Table of Contents

Other manuals for IBM 5100

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM 5100 and is the answer not in the manual?

IBM 5100 Specifications

General IconGeneral
Release Year1975
RAM16 KB - 64 KB
Storage204 KB tape drive
Display5-inch CRT
Operating SystemAPL/BASIC
ProcessorIBM PALM (1.9 MHz)

Related product manuals