Set Randomizer v2.2 [deprecated]

0.09MB. Updated 2019-12-01. Only supports Anki 2.1.x.

The author has shared 12 other item(s).

Description

Anki v2.1.21 has partially broken this add-on. The insertion functionality was broken, however shortcuts still work. If you inserted SR with a previous version of this add-on, then the functionality can still be used however, because it works with JavaScript. NOTE: I am no longer actively maintaining this add-on. I will shortly release a replacement called "Closet For Anki", which will offer the same functionality as Set Randomizer, but even more (e.g. Image Occlusion), and do so in a much more maintainable way. Please be patient.

Download

As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

2.1.0-2.1.21+ (updated 2019-12-01) Supported Anki versions:

To download this add-on, please copy and paste the following code into Anki 2.1:

1164532380

If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.

All Anki 2.1.x Add-Ons Contact Author

Reviews

Nice!!!





Error

An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.

If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.

When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site.

Debug info:

Anki 2.1.23 (de9543ff) Python 3.8.0 Qt 5.13.1 PyQt 5.14.1

Platform: Mac 10.13.6

Flags: frz=True ao=True sv=2

Add-ons, last update check: 2020-03-22 15:58:11

Add-ons possibly involved: ⁨Set Randomizer v22⁩



Caught exception:

Traceback (most recent call last):

File "/Users/user/Library/Application Support/Anki2/addons21/1164532380/src/gui_config/custom/sr_config.py", line 47, in saveCurrentSetting

write_back(settings)

File "/Users/user/Library/Application Support/Anki2/addons21/1164532380/src/gui_config/custom/sr_config.py", line 25, in write_back

setup_models(settings)

File "/Users/user/Library/Application Support/Anki2/addons21/1164532380/src/lib/model_editor.py", line 23, in setup_models

remove_model_template(model)

File "/Users/user/Library/Application Support/Anki2/addons21/1164532380/src/lib/model_editor.py", line 35, in remove_model_template

mw.col.media.syncDelete(front_name)

AttributeError: 'MediaManager' object has no attribute 'syncDelete'



Any help? Thanks! (: Comment from author Yep, Anki 2.1.23 broke this add-on unfortunately.



Thing is, I'm working on a complete revamp of this add-on, which I'm paying more attention now. I'll try to fix this error in the coming future. Great idea, but it's not working on Anki 2.1.23 macOsErrorAn error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site.Debug info:Anki 2.1.23 (de9543ff) Python 3.8.0 Qt 5.13.1 PyQt 5.14.1Platform: Mac 10.13.6Flags: frz=True ao=True sv=2Add-ons, last update check: 2020-03-22 15:58:11Add-ons possibly involved: ⁨Set Randomizer v22⁩Caught exception:Traceback (most recent call last):File "/Users/user/Library/Application Support/Anki2/addons21/1164532380/src/gui_config/custom/sr_config.py", line 47, in saveCurrentSettingwrite_back(settings)File "/Users/user/Library/Application Support/Anki2/addons21/1164532380/src/gui_config/custom/sr_config.py", line 25, in write_backsetup_models(settings)File "/Users/user/Library/Application Support/Anki2/addons21/1164532380/src/lib/model_editor.py", line 23, in setup_modelsremove_model_template(model)File "/Users/user/Library/Application Support/Anki2/addons21/1164532380/src/lib/model_editor.py", line 35, in remove_model_templatemw.col.media.syncDelete(front_name)AttributeError: 'MediaManager' object has no attribute 'syncDelete'Any help? Thanks! (:

Nice one.

Works with iOS app!

Most productive addon.

Works well but I have severe fomo that I'm not using SR's full potential. Would love to hear use cases from other end-users.





Error



Debug info:

Anki 2.1.12 (eef86bf3) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3

Platform: Mac 10.15

Flags: frz=True ao=True sv=1

Add-ons possibly involved: Set Randomizer



Caught exception:

File "aqt/progress.py", line 72, in handler

File "aqt/main.py", line 136, in setupProfile

File "aqt/main.py", line 277, in loadProfile

File "anki/hooks.py", line 29, in runHook

File "/Users/fms/Library/Application Support/Anki2/addons21/1164532380/src/main.py", line 21, in default_write

write_data_back(config_data)

File "/Users/fms/Library/Application Support/Anki2/addons21/1164532380/src/gui/sr_config.py", line 16, in write_data_back

setup_models(config_data)

File "/Users/fms/Library/Application Support/Anki2/addons21/1164532380/src/lib/model_editor.py", line 24, in setup_models

remove_model_template(model)

File "/Users/fms/Library/Application Support/Anki2/addons21/1164532380/src/lib/model_editor.py", line 33, in remove_model_template

front_name = '_front' + model['id'] + '.js'

<class 'TypeError'>: must be str, not int Comment from author Hi.

I've just updated the add-on, which should fix this error. Hi! Love the idea, got an error though.ErrorDebug info:Anki 2.1.12 (eef86bf3) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3Platform: Mac 10.15Flags: frz=True ao=True sv=1Add-ons possibly involved: Set RandomizerCaught exception:File "aqt/progress.py", line 72, in handlerFile "aqt/main.py", line 136, in setupProfileFile "aqt/main.py", line 277, in loadProfileFile "anki/hooks.py", line 29, in runHookFile "/Users/fms/Library/Application Support/Anki2/addons21/1164532380/src/main.py", line 21, in default_writewrite_data_back(config_data)File "/Users/fms/Library/Application Support/Anki2/addons21/1164532380/src/gui/sr_config.py", line 16, in write_data_backsetup_models(config_data)File "/Users/fms/Library/Application Support/Anki2/addons21/1164532380/src/lib/model_editor.py", line 24, in setup_modelsremove_model_template(model)File "/Users/fms/Library/Application Support/Anki2/addons21/1164532380/src/lib/model_editor.py", line 33, in remove_model_templatefront_name = '_front' + model['id'] + '.js' : must be str, not int

Comment from author Hi, hgiesel here.

I noticed the same thing this morning. iOS Anki v2.0.50 broke my add-on. I'm working on a fix, so please be patient.



Note: The current version (v2.1) works just fine on iOS. It doesn’t work with Anki for iOS :

Fantastic.



The add-on creator wrote on reddit: 'My use case was advanced language learning. At some point you might know certain synonyms, but there was always phrases were only one of those synonyms makes sense, or "sounds natural". This is how everything started.'



The deck with the documentation is great. Randomization should often be useful but I think that so far I have missed many uses cases that this powerful add-on makes possible. I would love to see some actual cards made with this add-on.



Thanks for sharing.