Skip to content
View in the app

A better way to browse. Learn more.

Opusmodus

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Different seeds in a loop expression

Featured Replies

Dear All, 

 

How can I get controlled seeds in a expression like this?

 

 (let ((r-lis nil))
         (dotimes (i 4)
           (push (rnd-unique 5 '(1 2 3 4 5)) r-lis))
         r-lis)

 

This will result four different seeds (one for each loop iteration), like this:

 

rnd-unique :seed 361914
rnd-unique :seed 275956
rnd-unique :seed 883737
rnd-unique :seed 46981
((3 1 4 5 2) (4 2 1 5 3) (2 5 4 1 3) (1 3 5 4 2))

 

And this will result the same seed for all four iterations:

 

 (let ((r-lis nil))
         (dotimes (i 4)
           (push (rnd-unique 5 '(1 2 3 4 5):seed 1) r-lis))
         r-lis)

 Like this:

 

rnd-unique :seed 1
rnd-unique :seed 1
rnd-unique :seed 1
rnd-unique :seed 1
((3 1 5 4 2) (3 1 5 4 2) (3 1 5 4 2) (3 1 5 4 2))

 

How to make it with a specific seed chosen for each loop iteration?

 

THIS WON´T WORK...

 

 (let ((r-lis nil))
         (dotimes (i 4)
           (push (rnd-unique 5 '(1 2 3 4 5):seed '(1 23 467 11)) r-lis))
         r-lis)

 

All the best !

Thank you !

Julio

 

Create an account or sign in to comment


Copyright © 2014-2026 Opusmodus™ Ltd. All rights reserved.
Product features, specifications, system requirements and availability are subject to change without notice.
Opusmodus, the Opusmodus logo, and other Opusmodus trademarks are either registered trademarks or trademarks of Opusmodus Ltd.
All other trademarks contained herein are the property of their respective owners.

Powered by Invision Community

Important Information

Terms of Use Privacy Policy

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.