search for: random_number

Displaying 6 results from an estimated 6 matches for "random_number".

2015 Jul 27
2
R package with Fortran module on Windows? undefined reference to `__stack_chk_fail'
...contains subroutine dboard(darts, dartsscore) integer, intent(in) :: darts double precision, intent(out) :: dartsscore double precision :: x_coord, y_coord integer :: score, n score = 0 do n = 1, darts call random_number(x_coord) call random_number(y_coord) if ((x_coord**2 + y_coord**2) <= 1.0d0) then score = score + 1 end if end do dartsscore = 4.0d0*score/darts end subroutine dboard subroutine pi(avepi, DARTS, ROUNDS) bind(C, name="pi_") use, intrinsic :: iso_c_b...
2015 Jul 27
0
R package with Fortran module on Windows? undefined reference to `__stack_chk_fail'
...sscore) > integer, intent(in) :: darts > double precision, intent(out) :: dartsscore > double precision :: x_coord, y_coord > integer :: score, n > > score = 0 > do n = 1, darts > call random_number(x_coord) > call random_number(y_coord) > > if ((x_coord**2 + y_coord**2) <= 1.0d0) then > score = score + 1 > end if > end do > > dartsscore = 4.0d0*score/darts > > end subroutine dboard > > subroutine pi(avepi, DARTS, ROUNDS) bind(C, name="pi_&qu...
1998 Nov 25
1
File name in the print command
...acros give us the spool file name (not the "real" filename). When we print from a Windows 95 the spool file name is formet as /printer_path/<client_name>.<ramdom_number>, but when we print using smbclient the spool file is /printer_path/<real_filename>.<random_number>. My question is: - Is there any way to know the original name when we print from Win95? - Who choose this name? The samba server or the client? Please, if there is anybody who is printing banners and this works for him, tell me which configuration is using (Samba version, s...
2023 Oct 31
0
R 4.3.2 is released
...h as (C) icx, (C++) ipcx and (Fortran) ifx from oneAPI 2023.x.y. * There is support for using LLVM's flang-new as the Fortran compiler from LLVM 16.0.x (preferably 17.0.0 or later). UTILITIES: * R CMD check reports the use of the Fortran 90 random number generator RANDOM_NUMBER() and the subroutines to initialize it. 'Writing R Extensions' has example code to use R's RNGs from Fortran. BUG FIXES: * substr(x, n, L) <- cc now works (more) correctly for multibyte UTF-8 strings x when L > nchar(x), thanks to a report and patch...
2023 Oct 31
0
R 4.3.2 is released
...h as (C) icx, (C++) ipcx and (Fortran) ifx from oneAPI 2023.x.y. * There is support for using LLVM's flang-new as the Fortran compiler from LLVM 16.0.x (preferably 17.0.0 or later). UTILITIES: * R CMD check reports the use of the Fortran 90 random number generator RANDOM_NUMBER() and the subroutines to initialize it. 'Writing R Extensions' has example code to use R's RNGs from Fortran. BUG FIXES: * substr(x, n, L) <- cc now works (more) correctly for multibyte UTF-8 strings x when L > nchar(x), thanks to a report and patch...
2023 Oct 31
0
R 4.3.2 is released
...h as (C) icx, (C++) ipcx and (Fortran) ifx from oneAPI 2023.x.y. * There is support for using LLVM's flang-new as the Fortran compiler from LLVM 16.0.x (preferably 17.0.0 or later). UTILITIES: * R CMD check reports the use of the Fortran 90 random number generator RANDOM_NUMBER() and the subroutines to initialize it. 'Writing R Extensions' has example code to use R's RNGs from Fortran. BUG FIXES: * substr(x, n, L) <- cc now works (more) correctly for multibyte UTF-8 strings x when L > nchar(x), thanks to a report and patch...