You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to unn_pro...@googlegroups.com
Необходимо предложить собственные реализации функций random и randomize, которые выполняют функционал аналогичный этим функция в Pascal.
Message has been deleted
kaba...@gmail.com
unread,
Sep 30, 2014, 2:49:42 AM9/30/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to unn_pro...@googlegroups.com
Если из программы убрать Randomize, то каждый раз при запуске будут генерироваться одни и те же числа
var a,i:integer; begin randomize; while i<7 do begin a:=random(50); writeln(a); i:=i+1; end; readln; end.
Функция Random определяет диапазон случайных чисел
Alexey Sidnev
unread,
Sep 30, 2014, 3:54:26 AM9/30/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to unn_pro...@googlegroups.com
Это верно. Однако, необходимо представить программный код функций Random и Randomize, которые бы выполняли действия аналогичные этим функциям в Pascal (можно предложить вариант на псевдокоде).
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.