tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
8
Task/Random-numbers/MAXScript/random-numbers.maxscript
Normal file
8
Task/Random-numbers/MAXScript/random-numbers.maxscript
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
arr = #()
|
||||
for i in 1 to 1000 do
|
||||
(
|
||||
a = random 0.0 1.0
|
||||
b = random 0.0 1.0
|
||||
c = 1.0 + 0.5 * sqrt (-2*log a) * cos (360*b) -- Maxscript cos takes degrees
|
||||
append arr c
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue