|
-
Jun 29th, 2005, 09:18 PM
#1
Thread Starter
Member
Print to file[resolved]
Hi all again!
I want to checkout the outputs of this function, and so it would be faster if i add it code to print to file. But how?
VB Code:
For i = 1 To 186
ts = 18.61586 * (-Log(Rnd())) ^ (1 / 1.459292926) + 4.666839
Next i
Thanks
Last edited by ricardo13; Jun 29th, 2005 at 09:50 PM.
-
Jun 29th, 2005, 09:20 PM
#2
Re: Print to file
Why is it in a loop but I cannot find the "i" being used?
-
Jun 29th, 2005, 09:22 PM
#3
Thread Starter
Member
Re: Print to file
i want to checkout the first 186 elements, sorry i meant ts(i)
-
Jun 29th, 2005, 09:24 PM
#4
Re: Print to file
What do you mean by checkout?
-
Jun 29th, 2005, 09:27 PM
#5
Thread Starter
Member
Re: Print to file
the results must follow a weibull distribution, so i need to collect them to see if they really follow that distribution
-
Jun 29th, 2005, 09:39 PM
#6
Re: Print to file
This will print the results to a file. You may want to format the result before you print it, or change the filename or location.
VB Code:
option explicit
sub form_load()
randomize
Dim ff as insteger, ts as long
ff=freefile
open "C:\info.txt" for output as #ff
For i = 1 To 186
ts = 18.61586 * (-Log(Rnd())) ^ (1 / 1.459292926) + 4.666839
print #ff, ts
Next i
close #ff
end sub
-
Jun 29th, 2005, 09:42 PM
#7
Thread Starter
Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|