It is currently November 18th, 2018, 11:41 pm

New UniqueRandom option

Changes made during the Rainmeter 3.0 beta cycle.
User avatar
jsmorley
Developer
Posts: 18329
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

New UniqueRandom option

jsmorley » August 18th, 2013, 3:13 pm

Added a new UniqueRandom option. If set to 1, any Calc measure using the random constant and UpdateRandom will not repeat until all values between and including LowBound and HighBound have been used. Note that any dynamic change to LowBound or HighBound will reset the tracking of values.

Sample skin to demonstrate:
RandomFileImage_1.1.rmskin
8-18-2013 10-57-43 AM.jpg
This is really nice when used with something like that sample skin to show random images from a folder without repeating them, but would not be appropriate when used in a skin that for instance rolled dice, where you want the "true" random function that statistically will repeat and should...
You do not have the required permissions to view the files attached to this post.
User avatar
iNjUST
Posts: 118
Joined: June 20th, 2012, 12:44 am

Re: New UniqueRandom option

iNjUST » August 19th, 2013, 11:05 am

Neato! I came up with a novel use for it already: http://rainmeter.net/forum/viewtopic.php?f=27&t=16321
User avatar
balala
Rainmeter Sage
Posts: 7014
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: New UniqueRandom option

balala » August 19th, 2013, 8:44 pm

What is the minimum revision version (r?) to use this feature?
User avatar
jsmorley
Developer
Posts: 18329
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: New UniqueRandom option

jsmorley » August 19th, 2013, 9:01 pm

balala wrote:What is the minimum revision version (r?) to use this feature?
The most recent beta from http://rainmeter.net. If you are going to use the beta at all, and not the "release" version, you need to stay current.

This was added in r2081, but I'm not sure I understand the point of the question.
User avatar
balala
Rainmeter Sage
Posts: 7014
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: New UniqueRandom option

balala » August 20th, 2013, 4:59 pm

Yes, this was my question. Because I'm using r1950, and tried to use the UniqueRandom, but had no succes. After more try, I realised that maybe the used version is to old and I have to update.
Thank you.
User avatar
jsmorley
Developer
Posts: 18329
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: New UniqueRandom option

jsmorley » August 20th, 2013, 5:14 pm

balala wrote:Yes, this was my question. Because I'm using r1950, and tried to use the UniqueRandom, but had no succes. After more try, I realised that maybe the used version is to old and I have to update.
Thank you.
Glad to help. I am just really opposed to anyone using the beta, and staying on one that was created on 09-Jun-2013 until now.
User avatar
balala
Rainmeter Sage
Posts: 7014
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: New UniqueRandom option

balala » August 20th, 2013, 5:28 pm

Yes, you're right, I will update now. I don't install every new release.
rupture
Posts: 9
Joined: October 25th, 2013, 5:55 am

Re: New UniqueRandom option

rupture » October 25th, 2013, 6:00 am

got a question about this. why is it when i load this config do i have to wait whatever SecondsBetween is set to before an image shows?
User avatar
jsmorley
Developer
Posts: 18329
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: New UniqueRandom option

jsmorley » October 25th, 2013, 12:02 pm

rupture wrote:got a question about this. why is it when i load this config do i have to wait whatever SecondsBetween is set to before an image shows?
You don't. What you do have to wait for when you first load the skin is for FileView to read the entire folder(s) that you are using for your images. It is possible that if there are a huge number of files and / or folders that have to be collected by FileView, there could be a pretty decent delay until it is done and starts displaying images.
rupture
Posts: 9
Joined: October 25th, 2013, 5:55 am

Re: New UniqueRandom option

rupture » October 25th, 2013, 3:04 pm

actually there's only 5 files in the folder and if i lower the SecondsBetween the images show faster when i load it up.