Skip to content

randomCount on random.Shuffle should indicate what happens when decimals are passed.  #154

@seivan

Description

@seivan

Since the TypeScript teams keeps resisting adding separate types for integers and floats for type checking on the basis that runtime does not have them, even though JS has neither types nor interfaces this means it's a documentation problem.

I don't see it documented what happens when you pass 2.5 as an argument and there is no floor/ceil calls in the code

* The number of results to return. Defaults to
* the number of items in the `input` list. If fewer items are requested,
* some elements will be excluded from the result. If more items are requested,
* items will be repeated in the result but not more frequently than the number
* of items in the input list.
*/
readonly resultCount?: pulumi.Input<number>;

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/docsImprovements or additions to documentationkind/enhancementImprovements or new features

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions