setWidgetIdSeed: Set the random seed for widget element ids

Description Usage Arguments


Set a random seed for generating widget element ids. Calling this function rather than relying on the default behavior ensures stable widget ids across sessions.


setWidgetIdSeed(seed, kind = NULL, normal.kind = NULL)



a single value, interpreted as an integer, or NULL (see ‘Details’).


character or NULL. If kind is a character string, set R's RNG to the kind desired. Use "default" to return to the R default. See ‘Details’ for the interpretation of NULL.


character string or NULL. If it is a character string, set the method of Normal generation. Use "default" to return to the R default. NULL makes no change.

Search within the htmlwidgets package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.