random-number-generator

True random number generation

How is exactly that we talk about "true random" numbers when we are actually measuring something. I mean, isn't measuring almost the opposite of randomness. Som articles says that, for example, throwing a dice is "true random". Of course it isn't Pseudo-random, but is it even random?? If you could have a machine that throw dices from de...

Difference between random draws from scipy.stats....rvs and numpy.random

Hi, It seems if it is the same distribution, then random draws from numby.random is faster than that from scipy.stats.....rvs. I was wondering what causes the speed difference between the two. -Joon ...

Generating a url that I can use in a sign-off-email

So I have a service where you sign up for events. When you sign up, you get an email with an url where you can sign off the event. The given parameter of the url should be something that not anyone can guess. I've thought of UID, but that just isn't human readable. I also thought of hashing, but I don't know if I want to use that. btw...

How to genenerate 24 random numbers between 1 and 24 in PHP?

For this Wordpress site, I need to generate 24 variables each of which contains a number between 1 and 24. The problem is that two variables cannot have the same value. So I basically need to generate 24 variables each of which contains a number between 1 and 24. Here's the code that I am using to generate a random number. $mirza = ran...

Generate Random Weighted value

Edit: I've rewritten the question in hopes that the goal is a little clearer. This is an extended question to this question here, and I really like the function provided in this answer. In the answer above, one is able to set the probability of hitting an extreme, with higher numbers producing a higher probability of getting lower numb...

Random numbers across different programming languages

If I use the Random number generator function in different programming languages and I chose the same seed .. Do they have to give me the same random numbers ? for example I used Java and Perl ... gave different numbers. ...