[erlang-questions] Generating a list of lists containing random numbers

Awsaf Rahman awsafrahman1704@REDACTED
Mon Jul 2 23:36:10 CEST 2018


Hello!

I am trying to determine the execution time for my matrix multiplication
program and for that I need to generate a large enough List of Lists of
random integers. Say I want to generate a matrix with a 1000 rows (that is
1000 lists inside a list). Is there any way of doing it? I can generate a
list of random numbers using list comprehension but can't figure out how to
go about building a list of lists.

Regards
Awsaf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180702/312a250c/attachment.htm>


More information about the erlang-questions mailing list