Skip to main content

Questions tagged [random-number-generator]

0 votes
0 answers
60 views

I read the wikipedia article about this and have questions on numbers that can be used as pseudo random values. Questions are presented than a recursive algorithm used to discuss. Question: On $...
Nick's user avatar
  • 195
0 votes
2 answers
95 views

Background: Suppose, I want to use a Cryptographically strong random number generator for simulating random moves of a particle simulation using mote carlo method. I want to run the simulation for, ...
user366312's user avatar
3 votes
4 answers
371 views

In C it's well known to use simple routine for turning integer rng into float rng. Something like that ...
simd's user avatar
  • 131
2 votes
1 answer
407 views

I'm trying to create (or find) an algorithm to iterate over a range (e.g.: 1-100, etc) but randomly, without any duplicate values (similar result to random sort, etc) but without actually storing the ...
secemp9's user avatar
  • 121
0 votes
1 answer
60 views

I looked through Java's Random class and saw that the initial seed is created using: ...
Vishal's user avatar
  • 1
1 vote
1 answer
83 views

Random number generators commonly found in default libraries are actually pseudo-random number generators. Nevertheless, more sophisticated options exist to gather entropy from "truly"-...
Rexcirus's user avatar
  • 181
1 vote
1 answer
109 views

Problem : Consider a random vector $v$ which is uniformly distributed over the sample space $S = \{v \in \mathbb{Z}^{n} : 1^Tv = a , v \ge 0\}$ . How to efficiently generate such random vector ? note :...
C.C.'s user avatar
  • 225
1 vote
1 answer
945 views

Cloudflare famously uses a wall of lava lamps (https://en.wikipedia.org/wiki/Lavarand) to seed random number generators. But if you're going into the real world to seed your rng, why lava lamps? Why ...
JJW's user avatar
  • 11
0 votes
1 answer
51 views

On modern architectures, random number generators get seeded by the current system time as a source of randomness, which is nice because it is kind of unpredictable when a process will switch to the ...
Luna's Chalkboard's user avatar
-1 votes
1 answer
94 views

Recently i wrote a programme using random module of python. Then i realised that the same output was being repeated quite a number of times though it was supposed to be completely random.
Sage of Seven Paths's user avatar
4 votes
0 answers
198 views

Due to finite precision of number representations, we face situations like: In: 0.1+0.1+0.1==0.3 Out: False (on my ...
Matthieu Latapy's user avatar
1 vote
1 answer
188 views

I know that for most programs pseudo-random numbers are sufficient, but there are ways that machines can generate truly random numbers! There are devices that generate unpredictable processes. However,...
Monther's user avatar
  • 118
0 votes
1 answer
554 views

I have been working on a project that simulates an online bank. At this point, I'm implementing the code used to create user accounts. Each account will have a sortcode and account number, I have ...
Luke Tomkins's user avatar
4 votes
2 answers
166 views

As posed in the question; the statement naively seems like it should be self-evident but there are no algorithms that come immediately to mind. Suppose I have some domain $A$ (in my case a subset of $\...
Steven Stadnicki's user avatar
0 votes
0 answers
85 views

I have this Fortran code which generates a flat distribution as it produces a single random number centered on 0. The function GRNDM (Geant 4 random number generator) produces equally distributed ...
Pruthvi Mehta's user avatar

15 30 50 per page
1
2 3 4 5