This tag is for questions pertaining to random numbers, whether pseudo random or truly random.

learn more… | top users | synonyms (9)

7
votes
0answers
302 views

GLSL-ES Random grainy noise with FP16 limit

I am trying to write a compact and simple noise function with a strictly FP16 limit. This is with what I came out so far, but I think somewhere on the operation the number gets too small for fract or ...
3
votes
0answers
92 views

simple way to randomly subset a raster in R

I work in R. I have a raster (raster_entrop). I want to automatically generate random subset of this raster. The issue is that its extent is not rectangular and I want subsets completly enclosed in ...
3
votes
0answers
500 views

Java digital signature - java.security.ProviderException

I'm trying to make a digital signature of a file for which I'm using this tutorial from oracle. It all works perfectly fine on my local machine, but as I try to run it on a web server with no mouse, ...
3
votes
0answers
246 views

Random double Web Requests C# IIS7 PollLockedSessionCallback

i sometimes have double web requests (no double clickers). Can anyone please tell me what causes them, so i can prevent them? initial situation: It is a .Net 3.5 C# Application running in IIS7. No ...
3
votes
0answers
428 views

JavaCard random number generation speed

I'm implementing an authentication protocol using ECDSA on javacard. The funniest thing I noticed was the "secure random number genrator" takes 700ms for execution. This can be considered as ...
2
votes
0answers
34 views

Random crash when starting CoreAnimation… cant replicate

im getting this stack trace from different method calls... all the traces have this pattern: 2 libsystem_c.dylib 0x3ae27e92 _sigtramp + 42 3 OpenGLES 0x340ebb48 eagl_ctx_tls_set + 36 4 VectorKit ...
2
votes
0answers
19 views

How to test short period PRNGs?

So in short my question would be this: How one should test a short period PRNG? Emphasis being on short period, like from 2^8 up to at most 2^32. These small generators may have more compact and ...
2
votes
0answers
291 views

Android App crashes on some random devices (TargetInvocationException)

My First Android App crashes on some random devices independent from android version or device model when i try to start an intent or clicking a button and setting SharedPreferences**. I really can't ...
2
votes
0answers
179 views

How to place UIImageView randomly on X & Y axis but with linear mode?

I have reached up to image shown in the snapshot. But still its Y is at bottom only and I am not able to set the X properly overlapped. Images at Y can be up and down but cannot have the same Y as ...
2
votes
0answers
372 views

NSFetchedResultsController not displaying correct sort until after saveContext saves?

Admittedly I'm new. Criticism welcomed. After a month of trying various tweaks, the problem remains. For simplicity: There are three view controllers, calling them A, B, & C. A has 2 round rect ...
2
votes
0answers
67 views

Use scripting language to generate Zipf-like samples

Is there any scripting language function (like in python or bash) that samples from a zipf-like distribution, for exponent 0<a<=1. Zipf-like distribution p(a) can be found, here. PS: I am ...
2
votes
0answers
110 views

Weighted random selection in Cocoa (frequently changing the weights)

I have an array (could make it into a set I think) of around 1000-2000 dictionaries. Each one of those has a key whose value (a float... they don't add up to anything specific) I want to use as a ...
2
votes
0answers
108 views

How would I get the Fortuna generator (the one from the gnu classpath) to work right?

For some reason, no matter what code I try, this code always outputs a Exception in thread "main" java.lang.IllegalStateException: generator not seeded error. I have included my test code at the ...
1
vote
0answers
48 views

Generating a random number from a lognormal distribution

This shouldn't be too difficult, but for some reason this sampling random numbers from a distribution is really tripping me up. I know the best options for generating random numbers from a ...
1
vote
0answers
33 views

random circular mesh generation

I need to draw a circle as the initial level set . Then I am required to draw the semi-diameters of the circle for every center angle (pi/360) and randomly selecting 20 points on every diameter. A ...

1 2 3 4 5 53
15 30 50 per page