Displaying 20 results from an estimated 10000 matches similar to: "uniform integer RNG 0 to t inclusive"
2016 May 01
2
Changing Password Schemes
First of all, you can probably go online before you convert all passwords. You can modify your query in dovecot-sql.conf.ext to something like the following:
SELECT IF(crypt_pass IS NULL OR crypt_pass='', CONCAT('{PLAIN}',plain_pass), crypt_pass) as password FROM mailuser ..
This is assuming that:
* for incoming users, you have a plain_pass column containing just the plaintext
2016 May 01
3
Changing Password Schemes
You do need to complete the query. Don't just replace your query with the one I wrote. You have to have a WHERE clause, and you might need to return other fields.
Keep the password query you had before, just replace the 'password' column with "IF( ... ) as password"
The query as you have it now simply returns all the passwords for all the users, because you don't have a
2016 Apr 30
2
Changing Password Schemes
This looks good, except it is truncated, it should be something like  
95chars long, Is your hash column set to 128 or up around there or  
larger?
Quoting Carl A Jeptha <cajeptha at gmail.com>:
> Sorry for double reply, but this what a password looks like in the  
> "hashed" password column:
> {SHA512-CRYPT}$6$wEn1UFuiMzl9OSjd$Vh/PZ95WDID1GwI2
>
> ------------
2000 Feb 15
3
Problem compiling 1.2.2 on solaris
I am trying to run the configure for 1.2.2 on an intel solaris 2.7 box
and I get an error for urandom not found.
I cant find anything related to rand, urand, random, rng, or urandom on
my box.
How can I get around this, or where can I get urandom?
Chris
2008 Aug 14
2
RNG Cycle and Duplication
Hello all,
I am generating large samples of random numbers. The RNG help page says: 
"All the supplied uniform generators return 32-bit integer values that are 
converted to doubles, so they take at most 2^32 distinct values and long 
runs will return duplicated values." But I find that the cycles are not 
the same as the 32-bit integer.
My test indicated that the cycles for
2020 Jul 30
2
Seeding non-R RNG with numbers from R's RNG stream
Thank you Duncan and Gabriel.
I think that my trivial example was a little too trivial and is causing
some confusion. What's happening in the real function I'm writing is...
1. In R: Draw tens-of-thousands of times from a handful to Gamma RVs with
different parameters to initialize some variables. (Technically, I'm
calling gtools::rdirichlet which calls stats::rgamma)
2. Transfer the
2003 Oct 15
3
r-ish ? how can i improve my code?
Hi Folks,
I'm trying to learn R.  One of my intentions is to do some Monte-Carlo 
type modelling of road "accidents".
Below, to simplify things, I've appended a little program which does a 
'monte-carlo' type simulation.  However, it is written in a way which 
seems a bit un-natural in R.  Could someone help me make this a bit more 
R-ish please?
Or is there a
2006 May 11
4
data input strategy - lots of csv files
Good morning,
I have currently 63 .csv files most of which have lines which look like
  01/06/05,23445
Though some files have two numbers beside each date.  There are
missing values, and currently the longest file has 318 rows.
(merge() is losing the head and doing runaway memory allocation - but
thats another question - I'm still trying to pin that issue down and
make a small repeatable
2012 Mar 14
2
Moore-Penrose Generalized determinant?
Is there a function in R to calculate the generalized determinant of a
singular matrix? - similar to the ginv() used to compute the generalized
inverse.
I can't seem to find any R related posts at all.
Thanks in advance,
Sean O'Riordain
Trinity College Dublin
--
View this message in context: http://r.789695.n4.nabble.com/Moore-Penrose-Generalized-determinant-tp4471629p4471629.html
Sent
2010 Sep 02
1
How to generate integers from uniform distribution with fixed mean
Hi, folks,
runif (n,min,max) is the typical code for generate R.V from uniform dist.
But what if we need to fix the mean as 20, and we want the values to be
integers only?
Thanks
	[[alternative HTML version deleted]]
2010 Jan 07
2
table() and setting useNA to be there by default?
Good morning,
Is there a way to get table() to default to including NAs  - as in...
table(..., useNA='ifany') or  table(..., useNA='always') or table(...,
exclude=NULL)  ?
I can't see a way under table() or options() or searching the archives
(probably using the wrong keyword?).
> t1 <- c(1,2,3,3,3,2,NA,NA,NA,NA)
> table(t1)
t1
1 2 3
1 2 3
I keep forgetting to
2003 Mar 03
0
R-devel RNG change
I find the documention for RNGversion in R-devel is a bit misleading, 
and suggest adding a sentence to make it clear that the meaning of 
"default" is not set to its meaning in the earlier R version:
      `RNGversion' can be used to set the random generators as they were
      in an earlier R{} version (for reproducibility). RNGversion does
      not set the meaning of
2010 Sep 04
0
How to generate integers from uniform distribution with
On 04-Sep-10 19:27:54, Yi wrote:
> Enh, I see.
> It totally makes sense.
> Thank you for your perfect explanation.
> Enjoy the long weekend~
> Yi
You're welcome! Earlier I tried an experiment with rejection
sampling, which seems to work well for the case where you want
mean of the sampled values to exactly be the mean of the range
being sampled from. The number of tries, even
2023 Feb 16
0
User-defined RNG with the standalone Rmath library
I have two questions about using a user-defined random number generator (RNG) with the standalone Rmath library. The default RNG with the standalone Rmath library is the Marsaglia-multicarry generator, which has poor properties. The "R Installation and Administration" manual, in the section "The standalone Rmath library", states that:
```
A little care is needed to use the
2016 Aug 31
1
A bug in the R Mersenne Twister (RNG) code?
On 30 August 2016 at 18:29, Duncan Murdoch wrote:
| I don't see evidence of a bug.  There have been several versions of the 
| MT; we may be using a different version than you are.  Ours is the 
| 1999/10/28 version; the web page you cite uses one from 2002.
| 
| Perhaps the newer version fixes some problems, and then it would be 
| worth considering a change.  But changing the default RNG
2008 Aug 14
0
[R] RNG Cycle and Duplication (PR#12537)
Shengqiao Li wrote:
> Hello all,
>
> I am generating large samples of random numbers. The RNG help page 
> says: "All the supplied uniform generators return 32-bit integer 
> values that are converted to doubles, so they take at most 2^32 
> distinct values and long runs will return duplicated values." But I 
> find that the cycles are not the same as the 32-bit
2008 Aug 14
0
[R] RNG Cycle and Duplication (PR#12538)
Shengqiao Li wrote:
> Hello all,
>
> I am generating large samples of random numbers. The RNG help page says: 
> "All the supplied uniform generators return 32-bit integer values that are 
> converted to doubles, so they take at most 2^32 distinct values and long 
> runs will return duplicated values." But I find that the cycles are not 
> the same as the 32-bit
2008 Dec 01
1
trivial spelling correction
Good evening,
Spotted a very minor spelling mistake in the source for the grep help.
And thanks to R-Core for all their work - it's a tribute to R-Core,
that these sort of "problems" are rare indeed.
Best regards,
Sean O'Riordain
Dublin
sean at sean7:~/R/RSVN/R/trunk/src/library/base/man$ svn diff
Index: grep.Rd
2011 Apr 25
1
possible minor doc clarification?
Good afternoon,
As a clarification does it make sense to remove the second 'not' in the 'See
Also' documentation for file_test ?
Kind regards,
Sean O'Riordain
-----
Index: src/library/utils/man/filetest.Rd
===================================================================
--- src/library/utils/man/filetest.Rd   (revision 55639)
+++ src/library/utils/man/filetest.Rd  
2005 Jul 05
2
finding out more about an object, e.g. lm
Hi!
I'm trying to use lm(y~x) amongst others in an automated way; I've
gone through the section on indexing in R-lang and I've looked MASS4. 
How do I find out more about the structure of the returned object?  In
perl I can look at object structure pretty-printed in the debugger -
is there an R equivalent?
I've used coef(lm(y~x))[[1]] and coef(lm(y~x))[[2]] to extract the