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

learn more… | top users | synonyms (9)

5
votes
0answers
255 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
64 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
413 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
225 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
418 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
82 views

Random SQL record while excluding specific records

I have a CodeIgniter PHP application that shows two movie covers. Beside them is a "random movie" button that uses AJAX to replace the two movies with a new set of movies. You can continue to click ...
2
votes
0answers
222 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
169 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
357 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
106 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
97 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
37 views

Creating random undirected graph c++

The issue is I need to create a random undirected graph to test the benchmark of Dijkstra's algorithm using an array and heap to store vertices. AFAIK heap implementation shall be faster than array ...
1
vote
0answers
21 views

How can I implement 'balanced' error spreading functionality in Excel?

I have a requirement in Excel to spread small; i.e. pennies, monetry rounding errors fairly across the members of my club. The error arises when I deduct money from members; e.g. £30 divided between ...
1
vote
0answers
22 views

Secure UUID v4 generation in PHP

I'm looking to generate a UUID (version 4) in PHP however all the methods I've seen use mt_rand() which I want to avoid as it poses security implications if the UUID generated can be guessed. I have ...
1
vote
0answers
91 views

Facebook Sharer URL Thumbnail Rules

Does anyone know the exact rules of the Facebook sharer thumbnail? From my understanding, what it is supposed to do, is look at the <head> and find the <meta type="of:image"> and have ...

1 2 3 4 5 48
15 30 50 per page