Re: String to sum
Re: String to sum
- Subject: Re: String to sum
- From: Gnarlodious <email@hidden>
- Date: Tue, 12 Oct 2004 19:19:35 -0600
Title: Re: String to sum
Entity Martin Orpen spoke thus:
set biglist to {}
set opList to {"*", "+", "/", "-"}
repeat 1000 times
set end of biglist to random number from 1 to 1000
set end of biglist to some item of opList
end repeat
set n to do shell script "echo \"scale=8 \n" & (biglist as string) & "1\" | bc"
n
WOW! That’s impressive. Thanks for proving the point. “bc” is the way to go with heavy math.
— Gnarlie
Gore invented the internet, Bush invented the internets
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden