The Un-Official Proxomitron Forum
I can't find the filter "Randomizers: Return Constant" - Printable Version

+- The Un-Official Proxomitron Forum (https://www.prxbx.com/forums)
+-- Forum: Proxomitron Filters (/forumdisplay.php?fid=38)
+--- Forum: Filter Help/Request (/forumdisplay.php?fid=31)
+--- Thread: I can't find the filter "Randomizers: Return Constant" (/showthread.php?tid=882)



I can't find the filter "Randomizers: Return Constant" - Rommedahl - Oct. 22, 2006 04:49 AM

I need that function and I don't find it.

[Image: 1ef8.jpg]

[Image: 2eq2.jpg]

Thank you.


RE: I can't find the filter "Randomizers: Return Constant" - Siamesecat - Oct. 22, 2006 06:13 AM

It is not in the default set of filters; I am sure of that. How can a randomizer return a constant?


RE: I can't find the filter "Randomizers: Return Constant" - JJoe - Oct. 22, 2006 12:46 PM

sidki's set has a Filter with that name but it's integrated.


RE: I can't find the filter "Randomizers: Return Constant" - Rommedahl - Oct. 22, 2006 04:10 PM

Thank you, I found it there, but it seems to be corrupted or it doesn't work. It says:

Randomizers: Return Constant 6.08.01 (fail) [sd z12] (o.3)

It is supposed to change every random number generated by math.random to 0.99999999999999 but it doesn't work. Any suggestion?


RE: I can't find the filter "Randomizers: Return Constant" - ProxRocks - Oct. 22, 2006 07:14 PM

you must use that filter as PART OF sidki's config...
i would not "expect" it to work properly "extracted" and inserted into a non-sidki config...


RE: I can't find the filter "Randomizers: Return Constant" - z12 - Oct. 22, 2006 10:39 PM

In, Sidki's filter set, the web filter is a toggle that enables or disables the javascript intercept of Math.random().

Personally, I've never gotten around to adding a toggle for my js intercept.

Here's the js intercept code that I use:

Code:
//-----------------------------------
  
  // replace Math.random function
  
  Math.PrxRandom = Math.random;
  Math.random = function(){return 0};
  
  //-----------------------------------

This code is injected in the head section.

You can return any value you like (between 0&1).

Sidki's js returns 0.99999999999999 which makes it easy to spot in the log window when it's tacked onto a url for cache busting purposes.

Mike


RE: I can't find the filter "Randomizers: Return Constant" - Rommedahl - Oct. 22, 2006 11:05 PM

I'm using one of the Sidki's default configs (sidki_2006-09-03.ptron) and most of the filters appear as "(fail)". I need to use this filter 'coz I'm trying to prevent a flash animation to generate a random number and make it constant; I don't know if I'm using the right application.

[Image: 03ln2.jpg]


RE: I can't find the filter "Randomizers: Return Constant" - JJoe - Oct. 23, 2006 01:08 AM

Rommedahl Wrote:I'm using one of the Sidki's default configs (sidki_2006-09-03.ptron) and most of the filters appear as "(fail)".
(fail)
Rommedahl Wrote:I need to use this filter 'coz I'm trying to prevent a flash animation to generate a random number and make it constant; I don't know if I'm using the right application.
If the number is generated and used inside a flash file, I doubt the Proxomitron can change it.