search for: randomnumber

Displaying 20 results from an estimated 23 matches for "randomnumber".

Did you mean: random_number
2010 Jul 28
2
Recording interface (pause/PLAY/RERECORD)
Is there a prebuild module/dialplan which gives me a nice interface to recording messages? Assuming I can't use the voicemail command, I need to offer users a way to record, playback, erase, rerecord, etc. I can probably do it through dialplan but it feels like I'm reinventing the wheel. Thanks, MD
2010 Jan 05
0
Problem with associating comments with blog posts on same page
...atemant %></h3> <p class="timestamp"> Posted <%=h time_ago_in_words(post.created_at) %> ago </p> <p> Approved: <%= h(post.approved) %> </p> <p class="post_post"> <%= simple_format h(post.body) %> </p> <% randomNumber = rand(100000) %> <img src="/images/add_comment.jpg" class="add_comment_image<%= randomNumber %>" /> <div id="comments<%= randomNumber %>"> <%= render :partial => post.comments %> <h1>New comment</h1> <% form_f...
2010 Sep 14
9
Random File Name
Hi, Im looking at using MixMonitor to record calls and I know that I need to set the filename first. However, with the number of calls coming in, hard coding the filename isnt an option. So I need to do something like this:- MixMonitor(RANDOMNUMBER.wav) But can't find a way to generate a random number. I thought that maybe I could use a unique variable that already exists for the current call, but I'm not sure which one to pick. Can anyone give me some advice on this? Thanks Dan -------------- next part -------------- An HTML atta...
2013 Jul 25
0
[LLVMdev] Steps to addDestination
Hi Rasha, > for(rit=Result.begin();rit!=Result.end();++rit) > { > Value* Address= BlockAddress::get (*rit); > > IndirectBrInst *IBI = IndirectBrInst::Create(Address, Result.size(),i->getTerminator() ); > IBI->addDestination((*rit)); > } This would be creating a block looking something like: [ Do stuff ] indirectbr i8*
2018 Sep 21
3
Bias in R's random integers?
...0 X1 <- replicate(N, as.integer(system("bash -c 'echo $RANDOM'", intern = TRUE))) X2 <- replicate(N, as.integer(system("bash -c 'echo $RANDOM'", intern = TRUE))) X <- X1 + 2 ^ 15 * (X2 > 2^14) and with numbers from random.org library(random) X <- randomNumbers(N, 0, 2^16-1, col = 1) So I'm not convinced there is an issue. Best, luke On Fri, 21 Sep 2018, Steve Grubb wrote: > Hello, > > Top posting. Several people have asked about the code to replicate my > results. I have cleaned up the code to remove an x/y coordinate bias for >...
2013 Jul 24
2
[LLVMdev] Steps to addDestination
Hi 1- for(rit=Result.begin();rit!=Result.end();++rit) { Value* Address= BlockAddress::get (*rit); IndirectBrInst *IBI = IndirectBrInst::Create(Address, Result.size(),i->getTerminator() ); IBI->addDestination((*rit)); } I tried this code , but the needed destination wasn't added. 2- About LLVM backend $ llc -march=cpp example_file.ll -o I think it
2006 Aug 31
0
New package 'random' for non-deterministic random number
...ng non-deterministic random numbers may be beneficial to seed parallel simulations with independent draws, to obtain portable initializations for other RNGs, to validate simulation with non-deterministic RNGs, or simply for fun and experimentations. The package contains five simple functions randomNumber (random integeres between min, max w/ duplicates) randomSequence (random sequences between min, max w/o duplicates) randomBytes (in hex, dec, oct or bin) randomBufferStatus (to query the server status) sufficientBits (boolean test of randomBufferStats vs rec'ed value) Also...
2006 Aug 31
0
New package 'random' for non-deterministic random number
...ng non-deterministic random numbers may be beneficial to seed parallel simulations with independent draws, to obtain portable initializations for other RNGs, to validate simulation with non-deterministic RNGs, or simply for fun and experimentations. The package contains five simple functions randomNumber (random integeres between min, max w/ duplicates) randomSequence (random sequences between min, max w/o duplicates) randomBytes (in hex, dec, oct or bin) randomBufferStatus (to query the server status) sufficientBits (boolean test of randomBufferStats vs rec'ed value) Also...
2007 Feb 25
3
Random Integers
Hi all, Is there an R function to generate random integers? Thanks in advance. Sincerely Anup --------------------------------- Now that's room service! Choose from over 150,000 hotels [[alternative HTML version deleted]]
2018 Sep 21
0
Bias in R's random integers?
...system("bash -c 'echo $RANDOM'", intern = TRUE))) > X2 <- replicate(N, as.integer(system("bash -c 'echo $RANDOM'", intern = TRUE))) > X <- X1 + 2 ^ 15 * (X2 > 2^14) > > and with numbers from random.org > > library(random) > X <- randomNumbers(N, 0, 2^16-1, col = 1) > > So I'm not convinced there is an issue. There is an issue, but it is in vseq.c. The plot I found striking was this: http://people.redhat.com/sgrubb/files/r-random.jpg It shows a scatter plot that is bounded to some rectangle where the upper right and lower...
2007 Nov 07
0
14 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_script.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_text_field_movie.c
...-3143,7 +3143,7 @@ const SwfdecActionSpec swfdec_as_actions[256] = { [SWFDEC_AS_ACTION_CAST] = { "Cast", NULL, 2, 1, swfdec_action_cast, 7 }, [SWFDEC_AS_ACTION_IMPLEMENTS] = { "Implements", NULL, -1, 0, swfdec_action_implements, 7 }, /* version 4 */ - [0x30] = { "RandomNumber", NULL, 1, 1, swfdec_action_random_number, 4 }, + [SWFDEC_AS_ACTION_RANDOM] = { "RandomNumber", NULL, 1, 1, swfdec_action_random_number, 4 }, [SWFDEC_AS_ACTION_MB_STRING_LENGTH] = { "MBStringLength", NULL, -1, -1, NULL, 4 }, [SWFDEC_AS_ACTION_CHAR_TO_ASCII] = { &quot...
2007 Jan 29
0
Branch 'interpreter' - 18 commits - libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_js.c libswfdec/swfdec_js_color.c libswfdec/swfdec_js_sound.c libswfdec/swfdec_pattern.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_script.c
...ol address */ g_string_append_printf (string, "Pool %u", swfdec_bits_get_u8 (&bits)); diff-tree 635f8982ba523747ac79bc87a4d106ba61ba3b44 (from 56d1844f206f946a24755bdb03ccfafdb5c51571) Author: Benjamin Otte <otte@gnome.org> Date: Sun Jan 28 19:00:06 2007 +0100 implement RandomNumber and PushDuplicate diff --git a/libswfdec/swfdec_script.c b/libswfdec/swfdec_script.c index 22ada41..a98b165 100644 --- a/libswfdec/swfdec_script.c +++ b/libswfdec/swfdec_script.c @@ -849,6 +849,30 @@ swfdec_action_string_add (JSContext *cx, return JS_TRUE; } +static JSBool +swfdec_action_pus...
2007 Oct 26
0
2 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.h test/trace
...NULL, 2, 1, { NULL, NULL, NULL, NULL, swfdec_action_cast } }, - [SWFDEC_AS_ACTION_IMPLEMENTS] = { "Implements", NULL }, + [SWFDEC_AS_ACTION_IMPLEMENTS] = { "Implements", NULL, -1, 0, { NULL, NULL, NULL, NULL, swfdec_action_implements } }, /* version 4 */ [0x30] = { "RandomNumber", NULL, 1, 1, { NULL, swfdec_action_random_number, swfdec_action_random_number, swfdec_action_random_number, swfdec_action_random_number } }, [SWFDEC_AS_ACTION_MB_STRING_LENGTH] = { "MBStringLength", NULL }, diff --git a/libswfdec/swfdec_as_object.h b/libswfdec/swfdec_as_object.h...
2007 Jun 08
0
Changes to 'refs/tags/0.4.2'
...; in swfdec_js_eval implement caching in the target's surface type various fixes for the previous image decoding cleanups Merge branch 'master' into interpreter implement alpha handling in a smarter way implement naive Add2 for Flash 5 and 6 implement RandomNumber and PushDuplicate ints are ints not uints in Push action stop printing out all actions implement ActionLess another fix for swfdec_js_internal implement Equals2 and fix If and Goto to jump correctly didn't catch NULL here, oops implement SetTarget and S...
2007 Apr 12
0
Branch 'as' - 15 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h libswfdec/swfdec_as_interpret.c
...retval; + } else { + *swfdec_as_stack_push (frame->stack) = retval; + } return; error: diff-tree 19645bbd08100a4684ace9256ed47edbfc629aa8 (from 63635ba4c29a8ecb3de4314f4586ed85c90266d7) Author: Benjamin Otte <otte@gnome.org> Date: Thu Apr 12 11:28:47 2007 +0200 implement RandomNumber action Also add a GRand to SwfdecAsContext so we can set/get the seed to reproduce stuff. diff --git a/libswfdec/swfdec_as_context.c b/libswfdec/swfdec_as_context.c index d8a0859..185ae0a 100644 --- a/libswfdec/swfdec_as_context.c +++ b/libswfdec/swfdec_as_context.c @@ -266,6 +266,7 @...
2007 Oct 25
0
6 commits - libswfdec/swfdec_as_interpret.c test/trace
...ot;Throw", NULL }, - [SWFDEC_AS_ACTION_CAST] = { "Cast", NULL }, + [SWFDEC_AS_ACTION_CAST] = { "Cast", NULL, 2, 1, { NULL, NULL, NULL, NULL, swfdec_action_cast } }, [SWFDEC_AS_ACTION_IMPLEMENTS] = { "Implements", NULL }, /* version 4 */ [0x30] = { "RandomNumber", NULL, 1, 1, { NULL, swfdec_action_random_number, swfdec_action_random_number, swfdec_action_random_number, swfdec_action_random_number } }, commit 78828b96e49c946e2c3aab29fc9bbd0fbd2dfeb0 Author: Pekka Lampila <pekka.lampila at iki.fi> Date: Thu Oct 25 19:21:53 2007 +0300 Reorga...
2018 Sep 20
4
Bias in R's random integers?
Hello, On Thursday, September 20, 2018 11:15:04 AM EDT Duncan Murdoch wrote: > On 20/09/2018 6:59 AM, Ralf Stubner wrote: > > On 9/20/18 1:43 AM, Carl Boettiger wrote: > >> For a well-tested C algorithm, based on my reading of Lemire, the > >> unbiased "algorithm 3" in https://arxiv.org/abs/1805.10941 is part > >> already of the C standard library in
2007 Apr 27
0
Changes to 'refs/tags/0.4.3'
...; in swfdec_js_eval implement caching in the target's surface type various fixes for the previous image decoding cleanups Merge branch 'master' into interpreter implement alpha handling in a smarter way implement naive Add2 for Flash 5 and 6 implement RandomNumber and PushDuplicate ints are ints not uints in Push action stop printing out all actions implement ActionLess another fix for swfdec_js_internal implement Equals2 and fix If and Goto to jump correctly didn't catch NULL here, oops implement SetTarget and S...
2007 Apr 12
0
Branch 'as' - 14 commits - libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h
..._ACTION_STRING_LESS] = { "StringLess", NULL }, + /* version 7 */ + [SWFDEC_AS_ACTION_THROW] = { "Throw", NULL }, + [SWFDEC_AS_ACTION_CAST] = { "Cast", NULL }, + [SWFDEC_AS_ACTION_IMPLEMENTS] = { "Implements", NULL }, /* version 4 */ [0x30] = { "RandomNumber", NULL, 1, 1, { NULL, swfdec_action_random_number, swfdec_action_random_number, swfdec_action_random_number, swfdec_action_random_number } }, + [SWFDEC_AS_ACTION_MB_STRING_LENGTH] = { "MBStringLength", NULL }, + [SWFDEC_AS_ACTION_CHAR_TO_ASCII] = { "CharToAscii", NULL },...
2007 Jul 02
0
Branch 'as' - 4 commits - libswfdec/swfdec_as_interpret.c test/trace
...+ SWFDEC_AS_VALUE_SET_INT (val, uni[0]); + g_free (uni); + } +} + +static void swfdec_action_ascii_to_char (SwfdecAsContext *cx, guint action, const guint8 *data, guint len) { char *s; @@ -2381,7 +2417,7 @@ const SwfdecActionSpec swfdec_as_actions /* version 4 */ [0x30] = { "RandomNumber", NULL, 1, 1, { NULL, swfdec_action_random_number, swfdec_action_random_number, swfdec_action_random_number, swfdec_action_random_number } }, [SWFDEC_AS_ACTION_MB_STRING_LENGTH] = { "MBStringLength", NULL }, - [SWFDEC_AS_ACTION_CHAR_TO_ASCII] = { "CharToAscii", NULL },...