Particles and Random Numbers and Cycles Render Goal.  Have access to a random number in range [0-1] per particle per frame in a Cycles Render Node.  Particle System is used.  Multiple particles per frame.

Question.  How can Blender drivers/other achieve that goal?

Current State. Partial Success.  Blender driver which is invoked once per frame.  Python Random random.uniform is used.  Input Value Node has the driver.  So the random number per frame is achieved, not per particle per frame.

To emphasize there are many particles per frame.  If there are 40 particles and 30 frames then 

1200 = (30 * 40) random numbers should be generated.



Thank You.

version 2.74 (sub 0), branch b'master', commit date b'2015-03-31' b'13:39', hash b'000dfc0', b'Release'
build date: b'2015-03-31', b'15:46:51'
platform: b'Windows:32bit'
You can use the particle info node to achieve this:



Where 1000 is the total number of particles.

If your particles do not have a random distribution, then this doesn't work so well.
In that case, you could try mapping the index to a procedural texture, e.g. like this: